Skip to content
Learn Netverks

Lesson

Step 57/58 98% through track

accessibility

Accessibility

Last reviewed Jun 1, 2026 Content v20260601
Track mode
iframe_html
Means
HTML preview sandbox
Reading
~3 min
Level
advanced

This lesson

This lesson teaches Accessibility—the ideas, syntax, and habits you need before moving on in HTML.

Accessible markup and styles are a legal and UX requirement on professional web teams.

You will apply Accessibility in contexts like: Websites, hybrid apps, email templates, design systems, and CMS-driven content.

Read the lesson, edit HTML/CSS in the playground, press Run to preview, then answer the lesson MCQs. Also use the HTML reference desk when you need tag or attribute lookup.

When intermediate lessons feel comfortable and you are ready for production-style trade-offs.

Accessibility ensures people using keyboards, screen readers, voice control, or situational limitations can complete real tasks—not an optional polish layer.

HTML responsibilities

  • Correct heading hierarchy and landmarks.
  • Labels tied to every form control.
  • Visible focus outlines unless replaced with equally clear indicators.
  • Text alternatives for non-text content.
  • Motion sensitivity (prefers-reduced-motion) coordinated via CSS.

ARIA bridging

Use aria-* when no native element expresses your widget—but implement keyboard patterns from WAI-ARIA Authoring Practices.

Testing

  • Automated scanners catch ~30% of issues.
  • Manual keyboard walks and screen reader spot checks remain mandatory.

Legal context

Many jurisdictions reference WCAG for compliance—translate standards into concrete acceptance criteria per feature.

Often skipped manual tests

  • 200% zoom + reflow: text must not truncate critical actions.
  • Reduced motion: vestibular issues from parallax—honor user preference.
  • Voice control: click targets need accessible names matching spoken commands.

False confidence sources

Passing axe in CI does not prove keyboard operability; designers’ Figma specs don’t include focus order—engineers must verify.

Skip navigation pattern

<body>
  <a class="skip-link" href="#main">Skip to content</a>
  <header>…</header>
  <main id="main" tabindex="-1">…</main>
</body>

Rendered (demo uses a unique fragment id so it never collides with the site #main)

Keyboard: tab once from the preceding paragraph to expose the visually hidden skip control.

Skip to demo target

Landing zone (#html-lesson-a11y-skip-target)

Accessibility test script (manual runbook)

  1. Keyboard test: press Tab once from the top of the page and confirm the skip link becomes visible and focusable.
  2. Expected screen reader phrase: your SR should announce a link similar to “Skip to demo target” and then “Landing zone” after activation.
  3. 200% zoom test: zoom browser to 200% and verify skip link/focus ring remain visible and not clipped.

Important interview questions and answers

  1. Q: What does progressive enhancement mean in API-driven pages?
    A: Core tasks should work with baseline HTML first, then richer APIs enhance experience when supported.
  2. Q: Why is feature detection better than browser sniffing?
    A: It checks actual capability, avoids brittle UA assumptions, and degrades gracefully.
  3. Q: What is the first accessibility check before shipping any page?
    A: Verify keyboard-only task completion with visible focus and meaningful accessible names.

Challenge

Keyboard check

  1. Tab through your form controls in the playground.
  2. Ensure focus order matches visual order.

Done when: every interactive control is reachable without a mouse.

Interview prep

What is a focus order problem?

When tab sequence does not match visual reading order—common after CSS reordering or positive tabindex abuse.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs in your browser in a sandboxed frame. Backend runners appear when this track’s profile allows them.

Check yourself

Multiple choice — immediate feedback.

Community stories on this track

Learner essays linked to HTML — not official lesson content.

Browse all stories

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What confused you about this lesson?
  • How would you explain this to a teammate in 30 seconds?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump