The University of Texas at Dallas
close menu
comet in evening sky

Accessibility for Web Developers

Semantic Markup

Use semantic HTML elements. Using elements that are recognized by browser engines, search engines and assistive technologies simplifies development and ensures a consistent, predictable experience for users.

Check out “What is Semantic HTML?” from the Accessibility Project to learn more.

It’s important that users are able to easily navigate around a site and in individual pages, especially if they’re using assistive technology.

Accessible Focus Indicators

Customize a:focus-visible to make linked elements stand out more as viewers tab through your page content.

CSS example:

a:focus-visible {
    box-shadow: inset 0 0 0 2px #5fe0b7;
    outline: 2px double #154734;
    border-radius: 0.125rem;
    outline-offset: -1px;
}
Example: List of links with one item receiving focus.
Example: Series of buttons with one item receiving focus.

Use “Skip” Links

Add a skip link at the beginning of the <body> so users with assistive technology have the option to jump past the navigation and straight to the main content of a page.

The skip link should be the first tab stop on a page. It can be visually hidden until it receives focus. It should be visible when it has focus.

HTML example:

<body>
  <a href="#main-content" class="sr-only">Skip to main content</a>
  ...
  <nav id="nav">
    ...
  <main id="main-content">
    <h1>Heading</h1>
    <p>This is the first paragraph.</p>
    ...
  <footer id="footer">
    ...

Pro tip: If you use a University-supported theme, this functionality is built-in. Learn more about our supported themes.

Provide Multiple Ways of Finding Pages

Provide at least two ways for users to access all of the pages in your site. The site’s navigation and search functions are great options. Providing a site map also can be helpful.

Names and Labels

Interactive elements should have labels that are visible, descriptive and accessible to assistive technology. This applies to elements such as buttons and form fields.

Labels in Forms

  • Each form field should have a unique label. Using the <label> element is preferred.
  • Labels should indicate if a field is required. Using color alone (such as making labels of required fields red) is not sufficient for this purpose.
  • An input’s label should be visible while a user is interacting with that input. Placeholder text that disappears when an input is active is not acceptable as a label.
  • Error messages should be programmatically associated with the related field(s) and should advise users on how to correct errors.
  • Check out WebAIM’s Creating Accessible Forms to learn more.

Layout

Reserve use of tables for tabular data, not for content layout. Check out WebAIM: Creating Accessible Tables.

Webpages should adapt to display content in ways that are consistent and sensible on devices of all sizes. Content order should be consistent between a large-screen PC and a table.

Users should be able to zoom in or resize text to 200%.

Don’t prevent users from using their own style sheets and color schemes (such as dark mode and high contrast).

Animations

Autoplay of animations or video is not recommended.

Moving content (such as animation or video) should allow users to pause or stop said content. Refer to WCAG 2.1 AA SC 2.2.2 for more information.

Respect user preference for reduced motion. Check out CSS-Tricks’ article on reduced motion to learn more.

What is WCAG? 2.3 Seizures and Physical reactions

Testing

Testing is one of the best ways to ensure your digital content is accessible. Tools are available for automated and manual testing.

  • Silktide: University Web Services facilitates this external service, which crawls UT Dallas webpages and flags issues relating to accessibility and overall quality. Email webdeveloper@utdallas.edu to request access.
  • Silktide Chrome extension: Add this to Chrome to run an accessibility check of any content in your browser.
  • Test your pages using a variety of devices and browsers. Include devices of different size and input methods (i.e., a PC and mouse, and a tablet that relies on touch).
  • Keyboard testing: Use a keyboard only (no mouse) to navigate through a webpage. An obvious visible indicator should appear on actionable elements to let you know where you are in the page.
    • Use the tab key to move forward through interactive elements. Shift + tab to move backward.
    • Use the enter key to activate buttons and links, and the space bar to select radio buttons and checkboxes.
    • Learn more from WebAIM: Keyboard Accessibility.
How to check your web accessibility with the Silktide Chrome extension
What is WCAG? 2.1 Keyboard accessible

University-Supported Tools and Branding

University Web Services develops and maintains accessible WordPress themes. These themes use University branding and are continually tested and regularly updated to meet accessibility standards.

Learn more about our supported themes.

Resources for Web Accessibility