We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5
1.
HTML <input type="color">
The <input type="color"> defines a color picker. The default value is #000000 (black). The value must be in seven-character hexadecimal notation. Ex. <label for="favcolor">Select your favorite color:</label> <input type="color" id="favcolor" name="favcolor" value="#ff0000">
2. HTML <input type="date">
The <input type="date"> defines a date picker. The resulting value includes the year, month, and day.
Ex.
<label for="birthday">Birthday:</label>
<input type="date" id="birthday" name="birthday">
3. HTML <input type="time">
The <input type="time"> defines a control for entering a time (no time zone).
Ex.
<label for="appt">Select a time:</label>
<input type="time" id="appt" name="appt">
4. HTML <input type="datetime-local"> The <input type="datetime-local"> defines a date picker. The resulting value includes the year, month, day, and time.
Ex.
<label for="birthdaytime">Birthday (date and time) :</label>
The <input type="email"> defines a field for an e-mail address. The input value is automatically validated to ensure it is a properly formatted e-mail address. To define an e-mail field that allows multiple e-mail addresses, add the "multiple" attribute.
Ex.
<h3>Show an email field (allows only one email address):</h3>
<label for="email">Enter your email:</label>
<input type="email" id="email" name="email">
<input type="submit">
Ex.
<h3>Show an email field (allows multiple email addresses).