Monday, November 19, 2012

A Look into: HTML5 Placeholder Attribute

By Thoriq Firdaus.
One of my favorite new pieces in HTML5 is the ability to add Placeholder Text easily. The placeholder text is the grey text that you find in an input field that is used to give a hint to the users on what input is expected in that field. Once users start typing in the input field, this text will disappear.
In the old days, we commonly do this with JavaScript, as follows;

View the Original article

No comments:

Post a Comment