{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-aria-valid-attr-value-7475247c88f5","title":"Ensure Valid ARIA Attribute Values for Accessibility","summary":"Validate ARIA attribute values in HTML to ensure compatibility with assistive technologies. This includes checking that boolean values use 'true\/false' instead of 'yes\/no' and that referenced IDs exist.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-valid-attr-value-7475247c88f5","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-aria-valid-attr-value-7475247c88f5","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-valid-attr-value-7475247c88f5.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-aria-valid-attr-value-7475247c88f5\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Ensure that IDs referenced in `aria-labelledby` or `aria-owns` actually exist in the DOM before validating ARIA attributes.","instructions":"---\nname: aria-valid-attr-value\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use valid values for ARIA attributes. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-valid-attr-value\n---\n\n# Use valid values for ARIA attributes\n\nInvalid attribute values cause ARIA properties to be ignored or misinterpreted by assistive technologies, leading to a broken or confusing user experience.\n\n## Quick Reference\n\n- Ensure ARIA attribute values (like `aria-expanded=\"true\"`) are valid\n- Avoid using \"yes\/no\" where \"true\/false\" is required\n- Check that IDs referenced in `aria-labelledby` or `aria-owns` actually exist\n\n## Check\n\nValidate that all ARIA attribute values conform to the allowed types (boolean, integer, ID list, etc.).\n\n## Fix\n\nCorrect any invalid ARIA attribute values to match the expected format defined in the ARIA specification.\n\n## Explain\n\nExplain why precise attribute values are necessary for browsers to correctly communicate element states to assistive technology.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Use valid values for ARIA attributes. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/aria-valid-attr-value\n","use_cases":["Reviewing HTML elements with ARIA roles such as 'dialog' or 'menu' to ensure valid attribute values like 'aria-expanded=\"true\"'.","Auditing interactive components like accordions or tabs to verify that ARIA attributes such as 'aria-controls' or 'aria-labelledby' reference valid IDs.","Testing screen-reader compatibility by validating that ARIA attributes like 'aria-checked' or 'aria-pressed' use boolean values."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/aria-valid-attr-value\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T15:16:45.000000Z","updated_at":"2026-11-23T04:54:44.000000Z","seo_title":"Validate ARIA attribute values for accessibility","seo_description":"Ensure valid ARIA attribute values in HTML for better accessibility. Check and fix invalid values like 'yes\/no' or missing IDs in ARIA attributes.","seo_keywords":["validate aria attribute values","aria valid values for accessibility","check aria attributes for screen readers","fix invalid aria attribute values"]}}