visually hidden

CSS that hides content from sight while keeping it in the accessibility tree so screen readers still read it.

In more detail

A typical sr-only class makes the element 1 pixel square, clips it and removes it from layout without using display: none, which would hide it from screen readers too. Announcer live regions and extra labels are often visually hidden.

Related terms

Taught in

References