NAME
accessibility
DESCRIPTION
antenna generates HTML that meets WCAG 2.1 Level A success criterion 2.4.1 (Bypass Blocks) and uses semantic HTML5 markup throughout.
SKIP NAVIGATION LINK
Every generated page includes a skip-navigation link immediately afterthat lets keyboard users jump past the site navigation directly to the main content:
The skip link is visually hidden off-screen until it receives keyboard focus, at which point it becomes visible.
The target is; tabindex=“-1” makes the link move keyboard focus into the main area, not just scroll to it.
If you maintain your own stylesheet, add these rules:
main:focus { outline: none; } .skip-link { position: absolute; top: -999px; left: -999px; padding: 0.5rem 1rem; background: #333; color: #fff; text-decoration: none; z-index: 9999; } .skip-link:focus { position: static; top: auto; left: auto; display: block; }
LANG ATTRIBUTE
Theelement includes a lang attribute from page.yaml. The default is “en-US”. Change it for non-English sites:
lang: ja # Japanese lang: fr-FR # French (France)