Overview of the markuplint:a11y preset checks
The markuplint:a11y preset validates the following accessibility criteria:
- WAI-ARIA conformance: Validates
roleandaria-*attributes. - Accessible names: Ensures elements requiring names (form controls, images, landmarks) have them.
- Landmark structure: Checks for top-level landmarks like
banner,main,complementary, andcontentinfo. - Heading structure: Verifies that
<h1>is present and heading levels are not skipped. - Label associations: Ensures
<label>elements are correctly linked to controls. - Media accessibility: Checks that
<audio>and<video>elements have<track>elements. - Interactive content: Checks for
accesskeyusage,tabindexrestrictions, and autoplay constraints.