aria-hidden="true"
, hidden
and display:none
tests
These tests are to determine how aria-hidden="true"
and hidden
attributes, as well as the display: none
CSS property are applied visually as well as how they are announced to screen readers.
The aria-hidden="true"
attribute
The following information should be visible on screen but not announced to screen readers.
.
Code
<span aria-hidden="true">Green spider</span>
The hidden
attribute
The following information should not be visible on screen and not announced to screen readers.
Yellow frog.
Code
<span hidden>Yellow frog</span>
The display:none
CSS property/value
The following information should not be visible on screen and not announced to screen readers.
.
Code
<span style="display: none;">Red wolf</span>