Web Accessibility Best Practices

#webaccessibility #adacompliance

Our methodology

Our unique research methodology for digital accessibility combines user testing, feature analysis, and hands-on experience. We review various remediation software and platforms to provide top recommendations.

Written and researched for humans by humans

Photo of Expert
Pedro Velhinho
Expertly reviewed by
Comments: 1

Congratulations! Your website is now accessible. But, your accessibility journey doesn’t end here. 

Accessibility is an ongoing process. Whenever you make adjustments to your site, it’s important to follow some essential best practices to ensure you can retain your compliant status.

We’ve divided this document into three different sections, including content, design, and development best practices.
  1. Best Practices for Content Updates
  2. Best Practices for Design Updates
  3. Best Practices for Code Updates

This way, each of your operating team members has a specific section they can focus on, ensuring you can continue providing an inclusive experience to all of your website users and visitors.

However, it’s essential to note that many of the best practices overlap between the different content, design, and development teams. Therefore, it’s crucial for all team members to have a comprehensive understanding of these shared best practices to ensure a unified and effective approach in providing an inclusive experience to all website users and visitors.

Best Practices for Content Updates

When updating your content or adding new content to your site, here are some best practices to abide by.

Infographic Web accessibility Best Practices for Content Updates

Add Useful Alternative Text to Images

Users with visual impairments rely on alternative text to understand images on a page. Make sure that you are always adding useful alternative text to the <alt> attribute whenever uploading an image that’s relevant to your content. 

The text should be clear, relevant, and shouldn’t be too long or it could create a frustrating and confusing experience. Alternative text isn’t necessary for decorative images. For these images, you can leave the <alt> attribute empty. 

Use the Necessary Headers Tags

Header tags such as H1, H2, and H3 not only make it easier to read your content but will emphasize the importance of certain information and outline the hierarchy of a page’s content. 

For this reason, it’s also essential to use headers in the right order. An H2 header should always follow an H1 header and H3 headers should always follow H2s.

Add Captions to Your Videos

If you regularly create and post video content, captions will ensure users with hearing impairments can still engage with your content. 

Platforms such as YouTube will automatically generate captions, but you should still check them for accuracy. If you also create and post podcasts, a transcript should be provided.

Limit Flashing Content

Flashing or blinking content should be avoided wherever possible as it can trigger seizures in certain site visitors. 

If you cannot avoid animated content, make sure that it doesn’t flash more than three times in any one second. It also helps to provide users with a warning about any flashing content.

Provide Controls for Animated Content

Carousels and sliders should always have next and previous controls. Users should also have the ability to pause or stop the content.

For sliders and carousels with text, ensure that a screen reader will be able to read the text out loud. It should also be able to read the number of the slide that a user is currently on. You can do this using HTML aria-attributes.

Lastly, make sure users can operate carousels and sliders with a keyboard alone. 

Best Practices for Design Updates

If you’re planning to change the look and feel of your website, here are some best practices to keep in mind.

Infographic: Web accessibility Best Practices for Design Updates

Make Your Text Easy to Read

For any body copy, a font size of at least 16px and no less than 13px is recommended to aid with readability. It’s also best to avoid all CAPS, which can be difficult for some people to read. 

It’s also important to choose an accessible font. Tahoma, Calibri, Helvetica, Arial, Verdana, and Times New Roman are all good options. 

The line height of your text is also important – make sure that it’s not too wide or narrow.

Lastly, make sure your site supports text resizing. 

Don’t Make Color the Only Way You Convey Information

Every color carries a different meaning, but this won’t mean much to someone who is color blind. Never rely on color alone to convey meaning. 

For example, using a red icon to indicate an error won’t have meaning to someone with color blindness. You should add a text error message too. It’s also best to stay away from using color text where possible, especially when placed on a low-contrast background.

Apply the Correct Color Contrast Ratio

Using the wrong color contrast will make it impossible for some users to distinguish between text and the background of your site. 

The ideal contrast ratio between your text and its background needs to be at least 4.5 to 1 for normal text and 3:1 for larger text. 

The only exceptions to this are:

  • If your font is at least 24px, the minimum color contrast ratio requirement is 3:1.
  • Text or images of text within an inactive UI component don’t have color contrast requirements. 
  • Text within a logo or brand name doesn’t have color contrast requirements. 

You can use our free Color Contrast Checker tool to test your site.

Keep Your Navigation Simple

Your navigation should always be clear, easy to use, and available on all pages. Drop-down menus can help simplify your navigation and are accessible using a mouse, keyboard, and screen reader. 

It also helps to apply focused states, which will indicate where a user is on your site at all times. This caters to people browsing your site on any device and those who rely on keyboards for navigation. 

Add Labels and Instructions to Forms

Users with cognitive disabilities and those who rely on screen readers can have trouble using forms that do not have labels and visual cues. Make your forms easy to understand by making it clear what each form field is for.

It’s also important to make your form fields large enough and your buttons easy to click, which will aid users with mobility impairments. 

Make Interactive Elements Easy to Identify

Elements such as links and buttons should have distinct styles so that they’re easy to identify. For example, when a user hovers over a link using a mouse or keyboard focus, it should change color. 

Make Feedback Easy to Identify

Any time an error occurs on your site, a user should know that one has occurred. They should also know what steps to take to clear the error. Make sure you are presenting your feedback in a unique style to make it easier to spot. 

Cater to All Device Sizes

Building responsive websites has always been important, but even more so if you want to be compliant with accessibility guidelines. Regularly test your site on different browsers and devices. Ensure that all of the elements on your site are completely visible on the screen and that you’re making the best use of the screen space. 

Best Practices for Code Updates

There will be times when you need to update the code of your site to achieve certain functionality – here are a few best practices to keep in mind. 

Infographic Web accessibility Best Practices for Code Updates

Account for Page Zoom

A site visitor should be able to zoom in by up to 400% without your content losing meaning or functionality. Making your site responsive will ensure that you’re accounting for page zoom. 

Don’t Rely Solely on Hover States to Reveal Links

Hover states are one of the easiest ways to highlight a link, but this won’t always work for users with disabilities. Not all users can use a mouse to navigate your site. 

This doesn’t mean you need to replace hover states completely though. Instead, place secondary actions inside of menus and let them darken for contrast when hovered or tabbed on. 

Set the Correct Rules for HTML Display

HTML content that is set to “display:none” will be ignored by assistive technologies. However, setting HTML content as “opacity:o” or “visibility:hidden” can be reached. Make sure you are applying the correct rules for HTML display to avoid a confusing experience for users. 

Code for Keyboard Accessibility

Your site’s code should make it possible for users to navigate your site using just a keyboard. Test your website by navigating your site using the TAB key. The keyboard focus should not disappear or jump out of order. 

You also need to make sure any clickable elements can be activated using the ENTER key. For sub or drop-down menus, the TAB and up and down arrows should work. 

Checkboxes and radio buttons should be selectable with the SPACEBAR.

Follow a Logical Semantic Structure

The quality of your HTML semantics will also contribute to your site’s accessibility. It will determine how assistive technologies make sense of your content. If a screen reader is unable to read content correctly, it’s an indicator that the incorrect HTML markup is being used. 

Use Regions

Marking up different regions on the pages of your site using the appropriate elements will ensure they can be identified by web browsers and assistive technologies. 

HTML5 markup is recommended for this as it includes elements such as <header>, <nav>, <footer>, and <section>. 

Include a “Skip to Main Content” Link

Give assistive technology the option to bypass your primary navigation and site header by including an invisible “skip to main content” link. 

The link will be visible to the naked eye but can receive keyboard focus. This provides disabled users with the option to focus on the main content on any given page.

Use Native HTML User Controls Where Possible

Implementing native HTML user controls will cover a lot of bases to keep your website accessible. For example, checkboxes would have a <input type=”checkbox”> tag and buttons would have a <button> tag. 

Keeping Your Website Accessible and Compliant

Along with following these best practices, it’s highly recommended that you test your site intermittently against the latest WCAG guidelines. This will ensure you can avoid costly lawsuits and unnecessary brand damage. 

Contact us to claim your 50% discount when you’re ready to re-audit your website. 

Accessibility Checker

Scan your website for accessibility related issues for free

How we reviewed this article
  1. Current version
  2. Modified July 31, 2024

    What we changed

    New best practices were added

  3. Modified June 21, 2024

    What we changed

    Article was reviewed by an expert

  4. First Draft of the Article April 8, 2024
I have been helping global businesses bring their brands to life online for over 14 years now and I still love it! I am particularly passionate about ensuring online content is accessible to everyone. I’ve spent years learning as much as possible about web accessibility, ensuring I can educate others on its importance no matter what sector they are in.

Danny Trichter is a dedicated researcher specializing in digital accessibility, ensuring that websites and digital platforms are usable by everyone, including those with disabilities. Beyond his professional pursuits, Danny enjoys exploring new destinations, sharing his travel experiences on his blog, and discovering hidden gems in Thailand where he currently resides. In his leisure time, he loves hiking, connecting with nature, and capturing the beauty of the world through his camera lens

1 comments

Subscribe
Notify of
guest
1 Comment
Oldest
Newest
Inline Feedbacks
View all comments
Cristian T
Cristian T
3 months ago

Effective web design is about more than just aesthetics; it’s about creating a seamless user experience. This blog captures that well! A web design agency can ensure your site meets both visual and functional goals.