%antenna(7) user manual | version 0.2.1 8278d2c
% R. S. Doiel
% 2026-11-25

# 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 after
<body> that lets keyboard users jump past the site navigation directly to
the main content:

  <a href="#main-content" class="skip-link">Skip to main content</a>

The skip link is visually hidden off-screen until it receives keyboard
focus, at which point it becomes visible.

The target is <main id="main-content" tabindex="-1">; 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

The <html> element 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)

# ARTICLE FOOTER FOR SOURCE LINKS

Feed item cards use <article> > <footer> (not <address>) for the source
URL at the bottom of each card.

# SEMANTIC TIME ELEMENTS

Publication and update dates are wrapped in <time datetime="YYYY-MM-DD">
elements and placed outside the <h2> heading so screen readers do not
announce the date as part of the article title.

# SEE ALSO

antenna help css
antenna help configuration


