HTML & CSS, WEB

HTML5 input placeholder attribute

If you would like to use the placeholder attribute, a new feature of HTML5, add the placeholder=”blahblah” in your html code.

Example:

1
<input type="text" name="firstname" placeholder="Your First Name"/>

Give it a try!

Warning:

This feature is supported in Firefox, Opera, Chrome and Safari.