Accessible HTML Content Patterns(link is external)

A collection of the full HTML5 Doctor Element Index(link is external), minus the <command> and <menu> tags (which have poor browser support(link is external)), as well as common markup patterns for quick reference.

Motivation

There are countless little gotchas and quirks to remember when writing markup, even for basic components. This is an attempt to capture and centralize them.

Use this as a starting point when creating your base markup and styling for a stable, progressively enhanced foundation to your site or app, or cherry-pick as needed.

Installation

There are a few of ways to work with this repo:

To review any changes you make locally, run make build from the command line. This will stitch the handlebar templates together to update docs/index.html(link is external).

Code Concerns

Classes and IDs

Are suggestions only, or used for internal navigation/reference. Don't feel you need to include them if they're not relevant to your component's needs.

Code Style

Tabs, indentation, comments, etc. are my personal preference. It's more important to be consistent than literal when using for your own project. Use EditorConfig(link is external) to help make this easier.

Accessibility Testing

This page has been tested via the Chrome DevTools Accessibility Audit(link is external), as well as WebAIM's WAVE(link is external) and Deque System's aXe(link is external) accessibility testing browser extensions, as well as Khan Academy's tota11y bookmarklet(link is external).

Answers to specific warnings issues are available on the repo's Wiki(link is external).

A note about ARIA(link is external): ARIA is a band-aid and not a cure-all(link is external). Use semantic markup whenever possible.

Contributing

Contributions are welcome!

Credits, Attribution, and Inspiration

License

MIT License(link is external)

Rating

0 out of 5 Stars 0 Review

5 Stars
 
0.00%
4 Stars
 
0.00%
3 Stars
 
0.00%
2 Stars
 
0.00%
1 Star
 
0.00%

About

  • There are no comments yet

Thank you! Review submitted.

Ok