Skip to content
Novus Examples

Eight ways to hide text

The same sentence hidden eight different ways: from sight, from assistive technology, from both, or from neither. Which ones an extractor should return depends on what it is for, which is exactly the decision this page forces. SAMPLE wording only.

Eight hiding techniques compared
TechniqueVisible?In the accessibility tree?The text
Nothing (control)YesYesSAMPLE sentence one.
display: noneNoNoSAMPLE sentence two.
visibility: hiddenNoNoSAMPLE sentence three.
The hidden attributeNoNo
Clipped (sr-only)NoYesSAMPLE sentence five.
aria-hiddenYesNo
Zero opacityNoYesSAMPLE sentence seven.
Off-screenNoYesSAMPLE sentence eight.

Every technique carries a data-hide attribute naming it, so a test can assert on each one individually rather than on the page as a whole.