HTML5 Forms, Part 1 part 2
New Attributes
HTML5 has introduced a new attribute called placeholder. On <input> and <textarea>elements, this attribute provides a hint to the user of what information can be entered into the field.
Result:
The autofocus attribute makes the desired input focus when the form loads:
Result:
The required attribute tells the browser that the input is required.
Comments
Post a Comment