# Ensure Keyboard Navigation for Accordions

Validate and implement accordions with keyboard navigation and ARIA attributes to ensure accessibility for screen reader users and keyboard-only navigation. The deliverable is accessible HTML markup with proper ARIA attributes and keyboard support.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-accordion-accessibility-5ac5e29695c2/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/accordion-accessibility/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T15:02:07.000000Z

**Updated at:** 2026-11-23T04:54:23.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure that button elements are used for accordion triggers with aria-expanded and aria-controls attributes. Keyboard navigation must support Enter, Space, and Arrow keys. Review server-rendered HTML and shared components for compliance.

### When to use it

- Reviewing HTML templates for accordion components
- Auditing server-rendered HTML for accessibility
- Testing shared components for keyboard navigation compliance

## Skill instructions

---
name: accordion-accessibility
description: "Use when reviewing templates, rendered HTML, or shared components related to Make accordions keyboard navigable. Validate the final browser-facing markup, not just the source framework abstraction."
metadata:
  category: html
  priority: medium
  difficulty: intermediate
  estimatedTime: "25"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/html/accordion-accessibility
---

# Make accordions keyboard navigable

Poorly implemented accordions trap keyboard users and leave screen reader users unable to understand or navigate collapsed content sections.

## Quick Reference

- Use button elements for accordion triggers with aria-expanded
- Associate panels with triggers using aria-controls
- Support Arrow keys for navigation between headers
- Use heading elements appropriately for document structure

## Check

Verify accordions use button triggers with aria-expanded, aria-controls, and proper keyboard navigation (Enter, Space, arrows).

## Fix

Implement accordions with button elements, aria-expanded state, aria-controls linking to content panels, and keyboard support.

## Explain

Explain the ARIA pattern for accessible accordions and how they enable keyboard and screen reader users to navigate collapsible content.

## Code Review

Review templates, server-rendered HTML, and shared components that output markup related to Make accordions keyboard navigable. Flag exact elements, attributes, and routes where the rendered HTML violates the rule.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/html/accordion-accessibility

