[whatwg] [WF2] Clear On Focus attribute

Alexey Feldgendler alexey at feldgendler.ru
Wed May 23 01:47:51 PDT 2007

On Wed, 23 May 2007 02:31:38 +0200, Charles Iliya Krempeaux  
<supercanadian at gmail.com> wrote:

> You need a label for the field... but don't want to put one beside it.
>  So the label goes inside the field... until you click on it.  (At
> which point the label disappears.)

The field's value shouldn't be abused to achieve this effect because the  
label is not a value. Stylesheets should be used to get a semantically  
appropriate piece of information, such as the field's title, to display in  
the box when the field is empty and has no focus.

Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com

More information about the whatwg mailing list