WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Proper way to hide content from a screen reader

for

From: ckrugman@sbcglobal.net
Date: Nov 16, 2009 3:55PM


If the item is not hidden from sighted viewers of the page why would you
want to hide it from screen reader users?
Chuck
----- Original Message -----
From: "D A" < <EMAIL REMOVED> >
To: "WebAIM Discussion List" < <EMAIL REMOVED> >
Sent: Monday, November 16, 2009 2:22 PM
Subject: [WebAIM] Proper way to hide content from a screen reader


> 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
>