html-accessibility

HTML Accessibility Skill

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "html-accessibility" with this command: npx skills add hack23/riksdagsmonitor/hack23-riksdagsmonitor-html-accessibility

HTML Accessibility Skill

Purpose

Ensure websites meet WCAG 2.1 Level AA accessibility standards for inclusive user experience.

Core Principles (POUR)

Perceivable

  • Text alternatives for images

  • Captions for audio/video

  • Sufficient color contrast

  • Text resizable without loss

Operable

  • Keyboard accessible

  • Enough time to interact

  • No seizure-inducing content

  • Easy navigation

Understandable

  • Readable text

  • Predictable behavior

  • Input assistance

  • Error prevention

Robust

  • Compatible with assistive tech

  • Valid HTML

  • Proper ARIA usage

Best Practices

Semantic HTML

<!-- ✅ Good: Semantic --> <header> <nav aria-label="Main navigation"> <ul> <li><a href="/">Home</a></li> </ul> </nav> </header>

<!-- ❌ Bad: Non-semantic --> <div class="header"> <div class="nav">...</div> </div>

Alt Text

<!-- ✅ Good: Descriptive alt --> <img src="chart.png" alt="Bar chart showing 60% increase in usage">

<!-- ❌ Bad: Missing or useless alt --> <img src="chart.png" alt="chart">

Color Contrast

/* ✅ Good: WCAG AA compliant / .text { color: #333; / Contrast ratio: 12.6:1 */ background: #fff; }

/* ❌ Bad: Insufficient contrast / .text { color: #777; / Contrast ratio: 4.4:1 - fails for small text */ background: #fff; }

Keyboard Navigation

/* ✅ Good: Visible focus */ a:focus, button:focus { outline: 2px solid #007bff; outline-offset: 2px; }

/* ❌ Bad: Removed focus */ :focus { outline: none; / NEVER DO THIS */ }

Testing

  • Keyboard-only navigation

  • Screen reader testing

  • Color contrast checking

  • HTML validation

  • Automated tools (axe, WAVE)

References

  • WCAG 2.1

  • MDN Accessibility

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

nist-csf-mapping

No summary provided by upstream source.

Repository SourceNeeds Review
General

riksdag-regering-mcp

No summary provided by upstream source.

Repository SourceNeeds Review
General

gh-aw-mcp-gateway

No summary provided by upstream source.

Repository SourceNeeds Review
General

compliance-checklist

No summary provided by upstream source.

Repository SourceNeeds Review