Placeholder in HTML5

I just came across this super cool HTML5 feature.

How many times did you coded a filler text within an input text field with javascript?

I love HTML5

Now with HTML5 we can create that placeholder in less than a blink of an eye.

Add the attribute and you’re ready to go 😉

Supported Browers

Google Chrome and Safari.

Full HTML5 Example

3 Responses to “Placeholder in HTML5”

  1. JMLeon June 25, 2010 at 11:16 am #

    This is an OUTSTANDING feature and I think I’m implementing it in my next projects for sure.

    • quicoto June 25, 2010 at 9:20 pm #

      Yes it is. The problem is the script lame part for FF and IE 🙁

  2. juverman November 28, 2012 at 8:00 pm #

    This attribute works also in Opera but in the different way

Leave a Reply

Add <code> Some Code </code> by using this tags.