Skip to main content

Lesson 9 of 9

Link Accessibility Best Practices

Making links accessible ensures that all users can successfully navigate your website. Following WCAG guidelines for links is both ethically important and often legally required.

15 minBy Priygop Editorial TeamUpdated 2026Peer Reviewed & Verified

Accessible Links Checklist

  1. 1Descriptive link text (no 'Click here')
  2. 2Visual distinction (underlines, not just color)
  3. 3Keyboard navigation (Tab + Enter)
  4. 4Focus indicators (never remove outline)
  5. 5Skip navigation link
  6. 6ARIA for icon-only links
  7. 7External link indication
Diagram
Loading diagram…

Write descriptive link text that makes sense out of context

Accessible Links Example

Accessible Links Example
<!DOCTYPE html>
<html>
<head>
  <style>
    .skip-link { position:absolute; top:-40px; left:0; background:#229c6b; color:white; padding:10px; z-index:100; }
    .skip-link:focus { top:0; }
    a:focus { outline:3px solid #229c6b; outline-offset:2px; }
    .sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
  </style>
</head>
<body>
  <a href="#main" class="skip-link">Skip to main content</a>
  <nav>
    <a href="/">Home</a> |
    <a href="/about">About</a> |
    <a href="/contact">Contact</a>
  </nav>
  <main id="main">
    <h1>Accessible Links</h1>
    <p><a href="/privacy">Read our privacy policy</a></p>
    <p><a href="https://google.com" target="_blank" rel="noopener noreferrer">
      Visit Google <span class="sr-only">(opens in new tab)</span>
    </a></p>
    <p><a href="/" aria-label="Go to homepage" style="font-size:24px">🏠</a></p>
  </main>
</body>
</html>

Quick Quiz

Module 3 β€” Knowledge Check

Module 3 β€” Knowledge Check
Question 1 of 5

Which attribute specifies where a hyperlink navigates to?

Hands-on Practice Tools for this Course

Test what you learn using these free in-browser developer utilities (no signup required).

All 40+ Tools

Topics in This Module

0/9 done