Placeholder in html5
HTML5 has made the page designing an easy task. Placeholder is input field improvement in html5. Things that we were doing in past using combination of HTML and client side scripting language can be done in HTML5 using an attribute. One of the example is placeholder attribute used with input type text which automatically puts the placeholder attribute value in the text field if it is empty. This placeholder text is cleared automatically on focus and on focus out either the entered text or the placeholder value (if nothing was entered) is displayed.
html form
[groovy]
<form>
<code>
<input name="fieldname" placeholder="Enter any keyword">
<input type="submit" value="Search">
</code>
</form>
[/groovy]
Support browser
IE | Firefox | Safari | Chrome | Opera |
. | 3.7+ | 4.0+ | 4.0+ | 11.0+ |
Each time I see blogs as beneficial as this for the reason that I need to cease bludging and commence operating on mine.Thanks