Input Type Attributes

Input Type Attributes


Input Type Attributes are widely used with the “Forms”.
The input fields inside the form gets validated on its own, when the user submits the form.
List of available attributes:

Attribute Description
Color User can select a color from the list.
Date Pick the required date in the input field.
Datetime Choose the date and time of any day.
Datetime Local Select date, time and time zone at once.
Email Enter your email id in the input field.
Month Choose the month and year at once.
Number User should fill only the numeric values in the input field.
Range Enter a value from the range of numbers.
Search Just enter the text and search for the details.
Tel It allows user to enter the phone number in input field.
Time Enter the time in the input field.
URL URL should be entered in input field.
Week Select both the week and the year at once.

Leave a Reply

Your email address will not be published. Required fields are marked *