WebAIM - Web Accessibility In Mind

E-mail List Archives

Proper way to hide content from a screen reader

for

From: D A
Date: Nov 16, 2009 3:25PM


Working on a web application where we're going to have a session
time-out message. I'd like to 'store' the HTML for this message on the
page (below the footer). I'll set it to display: none so it doesn't
appear until we need it.

IIRC, display: none usually hides the content from screen readers as
well. Usually a bad thing, but in this case is what I'm after. How
reliable is display: none for hiding from a screen reader?

Is there a more proper way to do that?

-Darrel