0
2.8kviews
Explain input elements newly introduced in HTML 5 with example.
1 Answer
written 6.3 years ago by | • modified 6.2 years ago |
Input Element color
<form> Select Color : <input type="color" ></form>
Input Element date
<form>Select Date : <input type="date" ><form>
Input Element datetime
<form>Birthday (date and time) : <input type="datetime-local"></form>
Input Element email
<form>E-mail : <input type="email" required></form>
Input Element month
<form>Select Month : <input type="month"></form>
Input Element number
<input>
attributes:
<form> Select Number : <input type="number" min="5" max="18" step="0.5" value="9"><form>
Input Element range
<input>
attributes to specify the range: max for max allowed value, min for the min allowed value, step for the number interval and value for setting the default value.<form>Range : <input type="range" min="1" max="200" value="70"><form>
Input Element search
<form>Search : <input type="search" name="search"></form>
Input Element tel
<form>Phone No. : <input type="tel" required></form>
Input Element time
<form>Select Time : <input type="time"></form>
Input Element url
<form>URL : <input type="url" required></form>
Input Element week
<form>Week : <input type="week"></form>