November 2011
Intermediate to advanced
384 pages
13h 23m
English
You can use the placeholder input attribute to insert a one-line text string into any text-based input field. When the form loads, supported web browsers will display this string in the input area with gray text and automatically clear it when the user attempts to type in a value. This is useful to provide a subtle description or formatting hints that the user is expected to follow in order to submit your form:
<input type='text' ... placeholder='text'>
The type attribute can be a text-based input type, such as text, telephone, url, email, and search. The placeholder attribute value appears as gray text in the input field itself, if supported. When the user clicks in the field, the placeholder text disappears, ...
Read now
Unlock full access