Which of the following attributes is used to specify the destination URL of a hyperlink?

Prepare for the WGU ITWD3120 C777 Web Development Exam with flashcards and multiple choice questions. Enhance web development skills and ace your exam with confidence!

The attribute used to specify the destination URL of a hyperlink in HTML is "href." When creating a hyperlink using the anchor <a> tag, the "href" attribute tells the web browser where to navigate when the link is clicked. This is essential for linking to different resources such as web pages, documents, and other files.

For instance, in the code <a href="https://www.example.com">Visit Example</a>, the browser directs the user to "https://www.example.com" when they click on the link. This demonstrates the primary role of the "href" attribute in hyperlink creation.

The other options do not serve this purpose. "url" is not a standard attribute in HTML for links, "src" is used in tags like <img> and <script> to specify the source of an image or a script file, respectively, and "link" does not relate to anchor tags but is instead used in the <link> tag for linking external stylesheets.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy