Question 2: Absolute URLs
Which is an absolute HTTPS URL?
courses/html.html../about.htmlhttps://example.com/courses/html.html/courses/html.html
Question 3: Relative Paths
A document is located at https://example.com/courses/html.html. What URL does the relative reference ../about.html resolve to?
https://example.com/courses/about.htmlhttps://example.com/about.htmlhttps://example.com/courses/../about.htmlas the final normalized pathhttps://about.html/
Question 4: Fragment Navigation
Which attribute value links to an element with id="contact" on the current page?
href="contact"href="/contact"href="#contact"id="#contact"
Question 5: True or False
A URL beginning with a single slash, such as /about.html, resolves from the root of the URL authority rather than from the current document's directory.
- True
- False
Question 6: Opening a New Browsing Context
Which attribute value normally requests that a link open in a new browsing context?
target="_self"target="_blank"rel="external"download="new"
Question 7: Email Links
Which link correctly opens a compatible email application to compose a message to support@example.com?
<a href="email:support@example.com">Email</a><a href="mailto:support@example.com">Email</a><a href="https://support@example.com">Email</a><a src="mailto:support@example.com">Email</a>
Question 8: Multiple Correct Answers
Which statements about HTML links are correct? Select all that apply.
- An anchor with a valid href can navigate to another resource.
- A fragment such as #overview can target an element with a matching ID.
- The download attribute guarantees that every external URL will be downloaded.
- Meaningful link text improves usability and accessibility.
Question 9: True or False
The rel="external" attribute automatically opens a link in a new tab.
- True
- False