Skip Link

About

A skip link is a anchor link that permits to jump in the tab order to:

  • an element
  • or from one element to another

The scroll is created by a anchor with a fragment uri.

Example

With bootstrap 5 and the visually-hidden-focusable 1) class (the control becomes visible once focused).

  • If the below code is at the top of the html document
  • If you focus into the address bar with the keyboard shortcut alt+d
  • and press the tab key (once for chrome, more for firefox), you would see the two below skip link
<div class="visually-hidden-focusable">
  <div class="container-xl">
    <a class="d-inline-flex p-2 m-1" href="#content">Skip to main content</a>
    <a class="d-none d-md-inline-flex p-2 m-1" href="#nav">Skip to docs navigation</a>
  </div>
</div>





Discover More
What is the Tab Order (Keyboard focus navigation)

The tab order is the order of interactive elements such as: links and form controls You can loop through this sequence in the browser by going to the address bar (alt+d) and pressing the tab...



Share this page:
Follow us:
Task Runner