1D0-720 · Question #98
In HTML5, which input type is used for entering a URL?
The correct answer is B. url. HTML5 introduced <input type="url"> specifically for URL entry, providing built-in browser validation that ensures the value matches a URL format (e.g., requires http:// or https://). Option A (text) accepts any string with no URL validation, making it technically functional…
Question
In HTML5, which input type is used for entering a URL?
Options
- Atext
- Burl
- Cweb
- Dlink
How the community answered
(43 responses)- A2% (1)
- B86% (37)
- C5% (2)
- D7% (3)
Explanation
HTML5 introduced <input type="url"> specifically for URL entry, providing built-in browser validation that ensures the value matches a URL format (e.g., requires http:// or https://). Option A (text) accepts any string with no URL validation, making it technically functional but semantically wrong and exam-incorrect. Options C (web) and D (link) are simply not valid HTML5 input types - they don't exist in the specification. Memory tip: Think of HTML5 input types as matching their purpose exactly - type="email" for emails, type="number" for numbers, type="url" for URLs - the type name is the data type.
Topics
Community Discussion
No community discussion yet for this question.