W3C home > Mailing lists > Public > public-html@w3.org > August 2007

Re: [Offtopic] Re: Placeholder Text for Text Boxes

From: Robert Burns <rob@robburns.com>
Date: Mon, 20 Aug 2007 22:40:44 -0500
Message-Id: <1A466113-C710-4678-A9A5-E448ECF4528F@robburns.com>
Cc: public-html@w3.org
To: Thomas Broyer <t.broyer@gmail.com>

Hi Thomas and Maurice,

On Aug 20, 2007, at 10:19 AM, Thomas Broyer wrote:

> 2007/8/20, Maurice Carey:
>> Also, is there, or is there going to be a way to indicate that an  
>> element
>> should be invisible for sighted users but any text in that element  
>> should
>> still be read for screen readers?
>> For example:
>> For a design where I have to put the text "username" and  
>> "password" inside
>> the input since there was no space to have a proper <label> I'd  
>> like to be
>> able to have put a proper label for the benefit of blind users but  
>> still
>> have it display:none for sighted users since they'll be able to  
>> see the text
>> inside the input. I may have the text "username" and "password"  
>> appear by
>> using background images in the <input> since "password" in a  
>> password input
>> looks like "********"
> You should theoretically be able do achieve this effect simply using
> media-specific stylesheets/rules, but I've been told screen readers,
> because they "read the screen", apply the media="screen" stylesheets
> :-(
> It seems like people are actually using style="position: absolute;
> left: -9999px" to bring the text out of view but still have it read by
> screen readers (that's part of the techniques for replacing header's
> text with an image).

The INPUT element also accepts the @alt attribute. Though it wasn't  
intended for this purpose, it might still be useful for screen  
readers if the placeholder text got repeated there. Though we would  
need to test this to be suer before recommending authors follow that  

Take care,
Received on Tuesday, 21 August 2007 03:40:56 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:25 UTC