> For the complete documentation index, see [llms.txt](https://docs.boston.gov/digital/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.boston.gov/digital/standards-and-best-practices/accessibility.md).

# Accessibility at COB

Web accessibility means that websites, tools, and technologies are designed and developed so that people with disabilities can use them.

**What to look for**

* Keyboard `focus` on focusable elements
* Tab order
* Label tags
* Title attributes

**Keyboard access**

* All "clickable" elements must be keyboard accessible
* Likewise all hover/focusable elements must have alternate keyboard focus matching the mouse hover

**Colors and fonts**

* Text colors should be tested for contrast. Make sure there is good color contrast between the text and the background
* A recommended minimum **font** size is 16 px. Use bold to add emphasis rather than italics or UPPERCASE, but use it sparingly!

**Images vs background images**

* Use background images only if necessary
* All images must have an alt tag
* Actual images must be use if it gives content more meaning or is the only content.

**HTML Structure**

* Content will be read from left to right, therefore html should be written out the way the keyboard will tab through content
* Input elements should have labels. They can hidden if not part of the design, but needs to be there for screen readers
* All HTML should have proper `aria` attributes
* Lists should have the proper `role` attribute

**Titles, captions, and summaries**

* Iframes should always have a title to explain the content of the iframe
* Tables must have `summaries` explaining the content of the table and `Captions` foe really large tables.
* Images should always have meaningful titles for screen readers to read
* Anchor tags `<a>...</a>` should always have a title

**Links and buttons**

* A link should always be a link and not a placeholder
* Buttons&#x20;

**Miscellaneous**

See boston.gov/digital for a lot of historical write ups on this work.

Write up on accessibility and text to speech completed for Jeniffer Vivar Wong/Office of Language and Communications Access on 4/5/21: <https://docs.google.com/document/d/1aa9wCaG3AzPsh6pPC-padNOv4YgazwyUs2VkWglvSHA/edit>

Potential ideas we found/brainstormed while writing this:&#x20;

*Tools/things Reilly found via Googling:*&#x20;

* <https://chrome.google.com/webstore/detail/talkie-text-to-speech-man/enfbcfmmdpdminapkflljhbfeejjhjjk?hl=en>
* <https://ai.googleblog.com/2019/09/large-scale-multilingual-speech.html>
* <https://github.com/Tomiinek/Multilingual_Text_to_Speech>
* <https://www.techradar.com/best/best-text-to-speech-software>

*Things Digital could consider:*&#x20;

* Bringing back the ‘accessibility’ header. Can’t remember if it ever got built and we just turned it off but there are designs for it
* Drupal modules for text to speech - would need devs to advise&#x20;
  * Would want to do some market research with other govs or places before implementing&#x20;
  * Lots of reference to Google cloud text to speech or Amazon Polly - unsure if this would be included in free license or we’d need to pay
* General Assembly project for general user experience/desire of this or the City spending some money and hiring a consultant for this or a USDR volunteer
