What are the new input types provided by HTML 5 for forms?
0
Following are the important, new input types for forms provided by HTML 5:
- color – Used for fields that should contain colour.
- date – Allows the user to select a date.
- datetime - Allows the user to select a date and time (with time zone).
- datetime-local - Allows the user to select a date and time (without time zone).
- email - Used for input fields that should contain an e-mail address.
- month - Allows the user to select a month and year.
- number - Used for input fields that should contain a numeric value. Restrictions on type of numbers accepted can be set.
- range - Used for input fields that should contain a value from a range of numbers. Restrictions on type of numbers accepted can be set here as well.
- search - Used for search fields.
- tel - Defines a field for entering a telephone number.
- time - Allows the user to select a time.
- url - Used for input fields that should contain a URL address.
- week - Allows the user to select a week and year.
Sign in to add a comment
0 Answers
0
📝 No answers yet!
Be the first to answer this interview question.
Your Answer
Sign in to post your answer and help the community.