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 the presence of
<h1>and ensures heading levels are not skipped. - Label associations: Ensures
<label>elements are correctly linked to controls. - Media accessibility: Checks for
<track>elements in<audio>and<video>tags. - Interactive content: Checks for restricted
tabindex, autoplay constraints, and the absence ofaccesskey.