Question 10: Navigation Semantics
Which element is most appropriate for a major group of website navigation links?
<footer><nav><aside><mark>
22. Quiz Answer Key and Explanations
Review the answers after completing the questions. Try to explain why the other options are incorrect as well.
Answer 1: B — <a>
The anchor element creates hyperlinks. Its href attribute specifies the destination. The link element is used for relationships to external resources, such as stylesheets, rather than ordinary clickable text links.
Answer 2: C — https://example.com/courses/html.html
This URL specifies the HTTPS scheme, domain and path. The other options are relative references or root-relative paths.
Answer 3: B — https://example.com/about.html
The current document is inside the courses directory. The .. segment moves to its parent directory, so the resulting path is /about.html.
Answer 4: C — href="#contact"
A fragment reference begins with # and identifies the target element by its ID. The target must exist in the document for the expected navigation to occur.
Answer 5: True
A single leading slash creates a root-relative URL reference. It starts from the URL authority's root, not the current document's directory.
Answer 6: B — target="_blank"
The _blank target requests a new browsing context, commonly a new tab. Browsers and user settings determine the actual presentation.
Answer 7: B — mailto:support@example.com
The mailto scheme allows a compatible email application to compose a message. The href attribute must contain the destination.
Answer 8: A, B and D
- A is correct because href defines the destination of an ordinary hyperlink.
- B is correct because a fragment can identify an element by its ID.
- C is incorrect because download does not guarantee downloading arbitrary external resources.
- D is correct because descriptive link text helps users understand destinations, including when navigating with assistive technology.
Answer 9: False
The external relationship value describes a relationship to an external resource. It does not itself request a new tab. The target attribute controls the requested browsing context.