Web Accessibility Best Practices

In today’s digital age, ensuring that our website is accessible to everyone is not just a legal requirement but also a moral imperative. By adopting inclusive design principles, you can create a web experience that is welcoming and usable for people with diverse abilities and needs. This guide will walk you through essential strategies and techniques to enhance accessibility to make the web a more inclusive space for everyone.

Do's and Don'ts of Accessible Web Pages

To create a more user-friendly and accessible website, it’s essential to focus on how you present links, headers, and images. By following simple best practices, you can ensure that all users, including those using assistive technologies, find your content easy to navigate and understand.

Effective alt-text is essential for making images accessible to all users, including those who rely on assistive technologies.

  • Be Concise: Provide a clear and concise description of the image. Focus on the essential information that conveys the image’s purpose or meaning.
  • Skip Descriptive Phrases: Directly describe the content and purpose of the image without using phrases like “image of…” or “graphic of…” to avoid redundancy, as assistive technologies already announce the presence of the image.
  • Keep it Brief: An alt-text description should be less than 100 characters.
  • Avoid Redundancy: Do not repeat information already provided in surrounding text. The alt-text should add value by offering additional context not found elsewhere.
  • Include Textual Content: If an image contains important text (e.g., a chart or a meme), include that text in the alt description to ensure it is accessible to users who can’t see the image.
  • Link to Data: When using an image of a chart, include alt-text that briefly describes the chart and provides a link to the plain text version of the data on another page. This ensures users can access the detailed information easily.
  • Keep It Simple: When in doubt, keep the description simple and straightforward. The goal is to convey the image’s purpose or content effectively without overwhelming the user.

Organizing your content with well-structured headers is key to creating a user-friendly and accessible website.

  • Maintain Hierarchy: Ensure that headers follow a sequential order. For example, don’t jump from H1 directly to H4. This structure aids in readability and navigation. 
  • Be Descriptive: Use clear and descriptive text for headers to convey the content that follows. This benefits all users, especially those using assistive technologies.
  • Avoid Redundancy: Don’t repeat the same header text multiple times on a page. Each header should provide unique and relevant information. 
  • Keep Header Text Concise: While headers should be descriptive, they should also be brief and to the point, making it easier for users to scan and understand the content.

Ensuring that your web page is visually accessible involves more than just choosing appealing colors; it’s crucial to adhere to accessibility guidelines and optimize text readability.

  • Follow Accessibility Guidelines: Use color contrast tools to ensure your text and important elements meet Web Content Accessibility Guidelines (WCAG) contrast ratios. Aim for a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text. 
  • Consider Font Weight and Size: When creating a graphic image for the website, choose fonts that are easily readable at various sizes and weights. Heavier or larger fonts can improve readability against contrasting backgrounds. Do not go lower than 8 pts.

When designing tables for your website, ensuring accessibility is crucial for users who rely on assistive technologies.

  • Include Table Headers: Define column and row headers. This provides context and improves navigation for screen reader users.
  • Provide Descriptive Captions: Use the caption element to give a brief description of the table's purpose. This helps users understand the context of the data.
  • Avoid Nested Tables: Nested tables are tables within tables. They are difficult for assistive technologies to interpret.
  • Use tables for data only: Do not use tables as a design tool. If your table doesn’t have a header or data within a cell, it is not being used for its intended purpose.

PDFs can inherently create barriers for people using assistive technologies, such as screen readers. It is best practice to avoid using a PDF where a simple web page will do. 

PDFs should be reserved for:

  • Fillable forms 
  • Organizational charts
  • Voluminous documents, such as agenda packets and handbooks. 

If you do plan to post one of these types of PDFs, it is imperative you ensure it is accessible before you upload it to the website. 

Naming Your PDF: When you save the PDF you plan to post, name it (or rename it, depending on the case) using hyphens to separate words. Do not leave spaces in the PDF's name and delete any unnecessary numbers or words. Remember, screen readers will read out loud an entire URL. If you leave spaces in the name of the PDF, the site will automatically fill the space with "20%." 

The added bonus to naming your PDF correctly, is that it'll be easier to find using a search engine like Google or Bing.

Examples:

  • Do Not name it: Sports Marketing Representative.pdf (this will turn into "Sports20%Marketing20%Representative" in the URL)
  • Do name it: sports-marketing-representative.pdf

How to Make Accessible PDFs