The PLACEHOLDER attribute
There’s quite a neat new attribute you can add to your text boxes called PLACEHOLDER. This is default text that disappears when you click inside a text box. Try the following:
<FORM>
<INPUT TYPE=”Text” PLACEHOLDER=”Enter your first name”>
<P>
<INPUT TYPE=”Submit” VALUE=”Contact Us”>
<INPUT TYPE=”Submit” VALUE=”Contact Us”>
</FORM>
The word PLACEHOLDER does not have to be in capitals, as like just about every HTML element it is not case sensitive. After an equal sign, you type the text you want to appear in your text box, surrounded by quotation marks.
No comments:
Post a Comment