Accessibility Coding Standards | Accessibility | Drupal Wiki guide on Drupal.org
Skip to search
Can we use first and third party cookies and web beacons to
understand our audience, and to tailor promotions you see
Documentation
Advertising sustains the DA. Ads are hidden for members.
Join today
On this page
Key Goals
General Best Practices
Technical Standards
Implementation
Screen reader hinting with WAI-ARIA (or ARIA)
Dynamic content
Keyboard Navigation
Accessible Methods for Hiding Content
Making content invisible for sighted users only
Making content invisible, until someone tabs to it
Completely hide content for all users
Inline Form Errors
Related Form Elements
Using animation responsibly
Testing Your Work
Automated Tools
Nightwatch and Drupal Core
Keyboard Access
Testing With Assistive Technology
Form Accessibility
Contributed Modules for Extending Accessibility in Drupal
Drupal Accessibility Features
How to Ensure Your Contribution is Accessible
How to do an accessibility review?
External Accessibility Resources
Drupal Accessibility (a11y) Office Hours
Accessibility Coding Standards
Accessibility Conformance Report (ACR) Process
Hide Content Properly
Accessibility Coding Standards
Last
updated
on
4 March 2026
The Drupal community strives to be inclusive to everyone, including people with disabilities. To that end, the Drupal community has developed the following accessibility coding standards to help make websites and other digital assets accessible to the widest possible audience.
Key Goals
Effective user experiences serve our entire community, including website visitors with disabilities. A positive experience can be achieved by focusing on three goals:
Creating an inclusive strategy: Consider accessibility needs when architecting the site
Incorporating Accessible Coding: Use best practices (as outlined below) to ensure that content can be navigated and read by all
Following Normalized Testing: Building accessibility reviews into existing processes (and not as an add-on) will help to ensure code pushed out is accessible.
General Best Practices
Drupal has made every effort to seamlessly build accessibility in Drupal Core.  This process empowers developers and authors to build highly legible content that can be parsed by assistive devices, by:
Providing
text alternatives (alt text)
for non-text content, such as images, charts and graphs.
Providing accurate transcripts, captions, and descriptions for video.
Ensuring color choices have sufficient
contrast
to make it easier to read for users with visual impairments.
Testing to ensure the website is
keyboard-navigable
, so that users who cannot use a mouse can still access all the content and functionality.
Using semantic HTML tags
, such as



    , and