• Stars
    star
    172
  • Rank 221,201 (Top 5 %)
  • Language Handlebars
  • License
    MIT License
  • Created over 8 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

♿️ The full HTML5 Doctor Element Index as well as common markup patterns for quick reference.

Accessible HTML Content Patterns

A collection of the full HTML5 Doctor Element Index, minus the <command> and <menu> tags (which have poor browser support), 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:

  • Clone it in its entirety: https://github.com/ericwbailey/accessible-html-content-patterns.git
  • Download a zipped copy
  • Install via NPM: npm i accessible-html-content-patterns
  • Curl just the HTML page (great starting place for a styleguide): curl -o accessible-html-content-patterns.html https://raw.githubusercontent.com/ericwbailey/accessible-html-content-patterns/master/docs/index.html
  • Copy/paste individual elements from the source code

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.

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 to help make this easier.

Accessibility Testing

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

Answers to specific warnings issues are available on the repo's Wiki.

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

Contributing

Contributions are welcome!

Credits, Attribution, and Inspiration

License

MIT License

More Repositories

1

empathy-prompts

💡 Ideas to help consider Inclusive Design principles when making things for others to use.
CSS
194
star
2

ericwbailey.website

📐 Repo for my personal website.
Nunjucks
54
star
3

a11y-webring.club

🌐 A webring for digital accessibility practitioners.
Nunjucks
37
star
4

styled-component-template

💅 Help keep your Sass partials consistent
26
star
5

alfred-wcag-workflow

🎩 Search through, copy, and open Web Content Accessibility Guideline (WCAG) Success Criterion (SC) using Alfred
20
star
6

alfred-emoji-snippets

🙃 Emoji Snippets for Alfred App
18
star
7

favicon

🖼 An attempt to capture all possible favicons for a web project.
18
star
8

enchilada

🌯 A collection of files and opinionated code used to set up projects. Check the repo Wiki for more info.
SCSS
18
star
9

lowvision.support

👁 Help improve your website's accessibility by simulating common low vision disorders and color-blindness.
14
star
10

dotfiles

🤖 Computer setup
Shell
12
star
11

sublime-snippets

Sublime Text snippets
5
star
12

working-with-high-contrast-mode-talk

🔆 Presented for Accessibility Camp Toronto on November 18, 2017 and ID24 on October 11, 2018.
JavaScript
5
star
13

emoji

🎉 I'm sorry.
3
star
14

literallytheindianocean.io

🌊 Literally.
3
star
15

modal-nodes

A modular, low-specificity CSS framework for cantina.co
HTML
3
star
16

remove-board-movement-events-from-the-github-issue-timeline

This extension can remove and restore the presence of timeline items generated by a project board event from GitHub's timeline.
JavaScript
2
star
17

emily-and-eric.wedding

💍 October 12, 2019
CSS
1
star
18

sadhighfive.com

👏 For quickly communicating that feeling of sorrowful solidarity.
1
star
19

test

This repo is for testing and evaluating GitHub-related things
Objective-C
1
star
20

it-is-not-an-accessibility-job-if-it-is-in-office-only.com

🚫 It's not.
HTML
1
star
21

ijustwanttogiveyoumoney.com

💵 Help me help you
HTML
1
star
22

gimmiethat.space

I need some space.
HTML
1
star
23

ericwbailey

README
1
star