Open this example in the interactive library
Source code
<div>
<a class="demo sr-only focus:not-sr-only" href="#main">Skip to content</a>
<p id="main" tabindex="-1">Tab into the preview to reveal the link.</p>
</div>
Reveal a skip link on keyboard focus with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<div>
<a class="demo sr-only focus:not-sr-only" href="#main">Skip to content</a>
<p id="main" tabindex="-1">Tab into the preview to reveal the link.</p>
</div>