Use a type
attribute on an input
element
Web Forms 2.0 aware browsers can:
use custom controls (e.g. a calendar for a date)
check the validity of submitted data
Web Forms 2.0 unaware browsers can ignore this and operate as normal
<label>E-mail address: <input type="email" name="addr"></label> <p> <label>Start date: <input type="date" name="start"></label> </p>