The <input type=”time”> permits users to choose a time without specifying a time zone.
Depending on the browser’s support, a time picker may appear within the input field.
Example
<form> <label for=”appt”>Select a time:</label> <input type=”time” id=”appt” name=”appt”> </form> |
The <input type=”url”> is employed for input fields intended to hold URL addresses.
Depending on browser support, the URL field may undergo automatic validation upon submission.
Certain smartphones recognize the URL type and augment the keyboard with “.com” to facilitate URL input.
Example
<form> <label for=”homepage”>Add your homepage:</label> <input type=”url” id=”homepage” name=”homepage”> </form> |
The <input type=”week”> enables users to select a week and year.
Depending on browser compatibility, a date picker may appear within the input field.
Example
<form> <label for=”week”>Select a week:</label> <input type=”week” id=”week” name=”week”> </form> |