1D0-720 · Question #58
Which of the following is a new input type introduced in HTML5?
The correct answer is B. email. email was introduced in HTML5 as a semantic input type that triggers email-specific validation and mobile keyboards optimized for email entry (e.g., <input type="email">). The distractors - text, password, and submit - all existed in HTML 4.01 and have been available since the…
Question
Which of the following is a new input type introduced in HTML5?
Options
- Atext
- Bemail
- Cpassword
- Dsubmit
How the community answered
(31 responses)- A3% (1)
- B87% (27)
- C3% (1)
- D6% (2)
Explanation
email was introduced in HTML5 as a semantic input type that triggers email-specific validation and mobile keyboards optimized for email entry (e.g., <input type="email">). The distractors - text, password, and submit - all existed in HTML 4.01 and have been available since the earliest days of HTML forms, making them legacy types rather than HTML5 additions. HTML5 introduced a whole family of new input types alongside email, including url, tel, number, range, date, color, and search.
Memory tip: Think "HTML5 = smarter forms." If an input type adds intelligence (validation, specialized keyboards, date pickers), it's likely HTML5. If it's purely structural with no built-in smarts (text, password, submit), it's pre-HTML5.
Topics
Community Discussion
No community discussion yet for this question.