Lesson 52 of 55
HTMLHyperlinks and Navigation
10 min
Course progress95%
What you'll learn
Keep these ideas in mind as you work through the lesson.
Lesson 52 of 55
HTML10 min
Keep these ideas in mind as you work through the lesson.
<a>)<a href='https://developer.mozilla.org' target='_blank' rel='noopener noreferrer'>MDN Web Docs</a>
href – Destination URL; can be absolute (https://…) or relative (/about.html).target='_blank' – Opens the link in a new tab/window.rel='noopener noreferrer' – Prevents the new page from accessing window.opener (security) and stops the referrer header from being sent.title – Optional tooltip that provides additional context.<nav> landmark for screen‑reader discoverability./projects/web-app) – aids SEO and usability.#section-id).target='_blank'? ✅rel='noopener noreferrer' present? ✅Tip: Test navigation with only a keyboard (Tab/Shift‑Tab) to confirm focus order and visible outlines.
Create a simple navigation bar with three links – Home, About, Contact – and wrap the list in a <nav aria-label='Main navigation'> element. Verify it appears in the browser’s Accessibility tree.