Skip links and bypass

Implementing ‘Skip to main content’ links, Visibility and focus management #

Skip to main content #

Elsevier | An Information Analytics Business Target : Expect More. Pay Less. incorporates well-designed skip links that greatly improve the navigation experience for screen reader and keyboard users. These skip links follow key accessibility principles, such as:

  • Screen readers announce skip links clearly when they receive focus, allowing users to understand their function immediately (e.g., “Skip to Main Content”).
  • Upon activation, skip links quickly take users to the targeted section, and screen readers announce the new content, ensuring users know they have navigated successfully.
  • Skip links can be accessed and activated using keyboard navigation (e.g., Tab key).
  • Skip links are located near the top of the page or in the header, making them easy to access so that users can bypass repetitive navigational elements.
  • Skip links are visually hidden by default and only become visible when they receive focus or when a screen reader is active, ensuring they don’t clutter
    the interface for sighted users but are accessible for those who need them.
  • After activating a skip link, focus shifts to the target section.
  • The behavior of skip links remains consistent across pages, ensuring that screen reader and keyboard users can reliably predict their functionality.
  • Each link leads to a unique destination.
  • Keyboard users are able to navigate the page efficiently using skip links, reducing the need for excessive scrolling to reach important content or navigation areas.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Accessible Skip to Main Content Example</title>
    <style>
        /* Visually hide the skip link but make it visible when focused */
        .skip-link{display:inline-block;margin:10px;padding:10px;background-color:#000;color:#fff;text-decoration:none;position:relative;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
        .skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;margin:10px;padding:10px;background-color:#000;color:#fff;text-decoration:none}
    </style>
</head>
<body>
    <!-- Skip to Main Content Link with ARIA -->
    <a href="#main-content" class="skip-link" aria-label="Skip to the main content">Skip to main content</a>
    <!-- Navigation (repeated content) -->
    <nav>
        <ul>
            <li><a href="/home">Home</a></li>
            <li><a href="/about">About</a></li>
            <li><a href="/services">Services</a></li>
            <li><a href="/contact">Contact</a></li>
        </ul>
    </nav>
    <!-- Main Content -->
    <main id="main-content" aria-labelledby="main-content-heading">
        <h1 id="main-content-heading">Main Content Heading</h1>
        <p>This is the main content of the page, where users will be directed after activating the 'Skip to main content' link.</p>
    </main>
</body>
</html>

Screen reader: NVDA

Videos:

Skip to footer #

Link example – Target : Expect More. Pay Less #

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Accessible Skip to Footer Example</title>
    <style>
      .skip-link{position:relative;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;width:1px;overflow:hidden}
      .skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;padding:10px;background-color:#000;color:#fff;text-decoration:none;display:inline-block}
    </style>
</head>
<body>
    <!-- Skip to Footer Link with ARIA -->
    <a href="#footer-content" class="skip-link" aria-label="Skip to the footer">Skip to footer</a>
    <!-- Main Content -->
    <main id="main-content">
        <h1>Main Content Heading</h1>
        <p>This is the main content of the page. You can read through or skip directly to the footer below.</p>
        <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris.</p>
    </main>
    <!-- Footer Section -->
    <footer id="footer-content" aria-labelledby="footer-heading">
        <h2 id="footer-heading">Footer Section</h2>
        <p>Footer links and important site information are located here.</p>
        <nav>
            <ul>
                <li><a href="#privacy">Privacy Policy</a></li>
                <li><a href="#terms">Terms of Service</a></li>
                <li><a href="#contact">Contact Us</a></li>
            </ul>
        </nav>
    </footer>
</body>
</html>

Screen reader: NVDA

Video:

What are your feelings

Updated on March 5, 2025