Placeholder
The placeholder
attribute places grey text in a text field. This text disappears when the user focuses on the element when clicking in it.
This text offer hints about the type of text that is expected or to encourage the user to type in the field.
<p>
Net ID:
<input type="text" name="name" id="test-text" placeholder="ab123456"/>
</p>
Please Enter:
Birth Year:
Net ID:
Password:
Comments or Concerns:
NOTE:Try clicking in the textbox with the grey text. This should work in most browsers. When you click in there or begin typing, the grey text disappears.
- Previous
- Next