[whatwg] Placeholder option for text input boxes
Jonas Sicking
jonas at sicking.cc
Tue Sep 30 02:28:32 PDT 2008
Benjamin Hawkes-Lewis wrote:
> Garrett Smith wrote:
>> |placeholder| sounds a little like |alt|. Alt is a property and an
>> attribute on INPUT.
>
> How is placeholder content for a form field alternative text?
The alt text is for situations where the <input> can not be displayed at
all. For example an <input type=image> where the image fails to load or
the user has disabled. Or you could imagine in theory if the UA
supported turning off form controls entirely.
The placeholder is content that is displayed along with a rendered form
control.
Thus placeholder is used along with the form control, alt is used
instead of it.
/ Jonas
More information about the whatwg
mailing list