HTML and CSS Certification 2025 – 400 Free Practice Questions to Pass the Exam

Question: 1 / 400

What attribute is used to specify the destination URL of a hyperlink?

src

href

The attribute used to specify the destination URL of a hyperlink in HTML is "href." This stands for "hypertext reference" and is a critical aspect of anchor tags, which are defined using the `<a>` tag. When creating a hyperlink, the href attribute is what tells the browser where to direct users when they click the link. For example, when you write `<a href="https://www.example.com">Visit Example</a>`, the browser knows to navigate to "https://www.example.com" when the link text "Visit Example" is clicked.

The other attributes mentioned do not serve the purpose of defining a hyperlink's destination. "src" is typically used with image and script tags to specify the source of a resource, "url" is not a standard HTML attribute, and "link" does not pertain to hyperlinks; it could refer to a relationship in a different context but is not used for the direct connection of hyperlinks in standard HTML syntax.

Get further explanation with Examzify DeepDiveBeta

url

link

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy