nerdexam
CIW

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…

Advanced HTML5 Features

Question

In HTML5, which input type is used for entering a URL?

Options

  • Atext
  • Burl
  • Cweb
  • Dlink

How the community answered

(43 responses)
  • A
    2% (1)
  • B
    86% (37)
  • C
    5% (2)
  • D
    7% (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

#HTML5 input types#form validation#URL input#HTML5 forms

Community Discussion

No community discussion yet for this question.

Full 1D0-720 Practice