The <input type="datetime-local">
designates a field for inputting both date and time, without specifying a time zone.
Depending on the browser’s support, a date picker may appear within the input field.
Example
<form> <label for=”birthdaytime”>Birthday (date and time):</label> <input type=”datetime-local” id=”birthdaytime” name=”birthdaytime”> </form> |
The <input type="email">
is utilized for fields intended to capture email addresses.
Depending on browser support, the email address can undergo automatic validation upon submission.
Certain smartphones recognize the email type and append “.com” to the keyboard to facilitate email input.
Example
<form> <label for=”email”>Enter your email:</label> <input type=”email” id=”email” name=”email”> </form> |
The <input type="image">
element designates an image to serve as a submit button.
The path to the image is indicated in the src attribute.
Example
<form> <input type=”image” src=”img_submit.gif” alt=”Submit” width=”48″ height=”48″> </form> |