[whatwg] Input field's hint value

Alexey Feldgendler alexey at feldgendler.ru
Wed Feb 21 02:54:37 PST 2007

On Wed, 21 Feb 2007 11:28:47 +0100, Wolfram Kriesing <wolfram.kriesing at gmail.com> 

> I was searching, but didnt find a hint-attribute for an input. The
> more often we are using inline editing, the more the need for the
> following is rising, imho:
> <input type="whatever" hint="Enter your title here" />
> The text "Enter your title here" is shown as the value while no value
> is given, or when the field is empty, upon focusing the element this
> string disappears. If no value was entered this text is shown again
> ... I guess its clear what I think of here, a lot of apps already have
> that.
> I could also imagine styling this hint text differently, may be customizable.
> Is there already such a thing?

>From the semantic standpoint, I believe this is what the title attribute 

Please somebody correct me if I'm wrong, but this behavior (show the value of 
the title attribute whenever the control is not focused and has empty value) can 
already be specified with CSS over WF2. 

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

More information about the whatwg mailing list