placeholder attribute
by Francis[ Edit ] 2013-03-05 09:54:36
Placeholder Attribute :
The HTML5 Placeholder text is displayed inside the input field is empty. When you click the input field and start typing, the placeholder text disappears. That is shown before the user enters a value.
<form>
<input name="q" placeholder="Enter your Search">
<input type="submit" value="Search">
</form>
Support Browsers :
IE - 10.0+
Firefox - 4.0+
Safari - 4.0+
Chrome - 4.0+
Opera - 11.0+
iPhone - 4.0+
Android - 2.1+
Note :
This attribute can only contain text, not HTML markup.