Skip to main content Home
About About the Design SystemRoadmap
Get started OverviewDesignersDevelopers
Foundations OverviewColorGridIconographyInteractionsSpacingTypography
Tokens Overview Global colorbox shadowTypographyborderopacityspacelengthIconBreakpointsMedia Queries
Elements All elements Accordion Alert Announcement Audio player Avatar Back to top Badge Blockquote Breadcrumb Button Card Chip Code block Call to action Dialog Disclosure Footer Health index Icon Jump links Navigation (primary) Navigation (secondary) Pagination PopoverPlanned Progress stepsPlanned Site status Skip link Spinner Statistic Subnavigation Surface Switch Table Tabs Tag Tile Timestamp Tooltip Video embed
Theming OverviewColor PalettesCustomizingDevelopers
Patterns All PatternsCardTabsFilterFormLinkLink with iconLogo wallSearch barSkip navigationSticky bannerSticky cardTileVideo thumbnail
Personalization All Personalization PatternsAnnouncement
Accessibility FundamentalsAccessibility toolsAssistive technologiesCI/CDContentContributorsDesignDevelopmentManual testingResourcesScreen readers
Design/code status Release notes Get support

Skip link

OverviewStyleGuidelinesCodeAccessibilityDemos
Skip LinkHref AttributeWith ContentSkip LinkHref AttributeWith Content
import '@rhds/elements/rh-skip-link/rh-skip-link.js';
```
<rh-skip-link href="#main-content">Skip to main content</rh-skip-link>
```

Href Attribute

import '@rhds/elements/rh-skip-link/rh-skip-link.js';
```
<rh-skip-link href="#main-content">Skip to main content</rh-skip-link>

<div id="main-content">
  <h1>Skip link</h1>
  <p>To show the skip link, click the white background and press your tab key <a href="#">Link</a>.</p>
</div>
```

With Content

import '@rhds/elements/rh-skip-link/rh-skip-link.js';
```
<rh-skip-link>
  <a href="#main-content">Skip to main content</a>
</rh-skip-link>

<h1>Skip link</h1>
<p>To show the skip link, click the white background and press your tab key.</p>

<link rel="stylesheet" href="../rh-skip-link-lightdom-shim.css">
```
© 2021-2025 Red Hat, Inc. Deploys by Netlify