Re: Remove "placeholder" attribute from HTML and turn it into a CSS feature

On Wed, May 1, 2013 at 4:05 AM, Léonie Watson <tink@tink.co.uk> wrote:
> Unimportant to whom? The label and placeholder do not have the same purpose.
> The label identifies the field, the placeholder provides a hint about the
> sort of data that should be entered. Neither thing is presentational, and
> both will be helpful to lots of people including AT users.

Yes.

The attribute could be renamed properly so people will start to use it
correctly. The name "placeholder" is kinda confusing and misleading.
Most of the time people misuse it as the replacement of <label>
element. A search on the google found that tons of tutorial websites
illustrate the attribute by simply filling its value: "Your name",
"Email address", "Your message", "Type here...", "Search the site",
etc. Obviously people don't really know what the attribute means. They
look like they think: "Woohoo! A time-saver whose value disappears
automatically! Finally no more label elements."


Kind Regards,
Ian Yang

Received on Wednesday, 1 May 2013 02:40:28 UTC