Web Page Playbook
Overview
Web page layout and components are important in creating and accessible experience for all users. Ensuring these considerations are used in page design phase will reduce fix time and help create the most accessible experience for all users.
Best practices checklist
Use this checklist to verify you've addressed each aspect of creating an accessible page.
Landmarks and Structure
The first step in accessibility is the structure.
Set the Page Language
Setting the language of the page is important so the screen reader knows how to pronounce the words on the page.
- Set the language of the page so the screen reader will correctly pronounce the words
- For example, for English use
<html lang="en-US"> - Sitefinity pages will have this automatically
Use Skip Links
Designers and Developers should ensure pages should include skip links; for example, to navigate to the main content and footer
- Use the UTMB standard skip links at the top of the page
- If there is more than one skip link it should coded as an HTML list
- Sitefinity pages will have this automatically (another reason why Sitefinity is the preferred platform for our sites.)
Use Meta Tags
Use meta tags for Search Engine Optimization (SEO); description and keywords should be included in the page head tag, even if a page is on the intranet.
- Description: A short description, one to two sentences (prose), summarizing the site content, maximum 150 characters.
<meta name="description" content="Site description" /> - Keywords: 8-10 keywords separated by commas, indicating the content of the page
<meta name="keywords" content="site, key, words" />
Include breadcrumbs on subpages
Use a Page Title
Best Practices
The page name should be short and easy-to-understand and create a readable URL.
- The page title <title> short and easy-to-understand, summarizing page content.
- The label for the browser tab is created using the HTML title tag.
For example:
<head><title>100 Days of A11y Home</title></head>
Quick check
- Page name - easy-to-understand, summarizes the content of the page, generally short -- a few words
- Page title -
<title></title>- HTML with easy-to-understand, summarizes the content of the page, generally short -- a few words - Note: In Sitefinity, the name of the page is the page title and what will show in the browser tab
- Avoid beginning every web page title with UTMB, because then it will be the first word in all open tabs; making difficult to discern which tab is which. UTMB can still be used, usually for just the first page in a section or site.
Page title tips:
- Use short, meaningful names (tabs aren't very large)
- Distinguishing information should go first (since playbook and Microsoft are repeated, they go at the end)
Benefits
Following these guidelines improves accessibility (a11y), search engine optimization (SEO), and usability
Related to: WCAG 2.4.2 Page Titled
Visual Design
Check these design elements for accessibility conformance.
Using UTMB Brand colors, ensures that we are providing a clear identity and consistent interface across our sites.
Ensure the page content meets WCAG Color Contrast Guidelines.
Page Content
Verify the following page components.
Use clear, plain language
Verify clear content and language and ensure terms are explained
Best Practices:
- Compose content at a 7th or 8th grade level, using clear language and short sentences.
- For long emails, consider a summary at the top, above the details
- Use bulleted or numbered list styles for key points, questions, etc. (Learn more about Using Lists)
Relates to: WCAG 3.1.5 Reading Level
Images have alternative text
Summary: images must have associated text describing the content of the image also called alt text. Some decorative images do not require a description.
Writing a good image description
Describe the image like you would to a person who wasn't in the room with you, so they know what is happening in the image.
- Write in sentence case.
- Include just the description, not introductory text like "An image of" or "Image of" as screen readers will say something like, "Image: Image of a red train going through a dark tunnel."
- Indicating the image is a graph, photo, or screenshot is okay. It will often sound like Image: Graph showing the number increase in sales" or "Image: Photograph of Mount Hood at sunset"
- Include any text in the image (for example legacy images that haven't been updated)
- If the image is complex or needs more of a description, add a detailed caption to the image.
Basic verification
- Run the application's accessibility checker. If the application doesn't have an accessibility checker (or wizard, etc.) Manually verify that each image has a description.
- Verify images
- have alternative (alt) text
- the image doesn't contain words as part of the image
- doesn't use the file name as the alt text
See also:
Add alt text to an images in:
Relates to: WCAG 1.1.1 Non-text Content
Define abbreviations and acronyms
Best practices
The first time an acronym is used, all words should be written out, followed by the acronym in parentheses. Subsequent instances can use only the acronym.
For example:
The Americans with Disabilities Act (ADA) was passed in 1990. The ADA was created to protect the civil rights of people with disabilities.
Exception(s)
Abbreviations such as PDF which has become common usage
Content Designers and Application Developers and Programmers Best Practices
Don't use tooltips, hover, or the <abbrev > tag
Relates to: WCAG SC 3.1.4 Abbreviations
Headings should convey meaning
Organizing your Word document or PowerPoint presentation with headings
Use the application's styles to apply headings.
- Each document should have only one Title that is descriptive and relatively short; the title of the document
- Headings should be used in order starting with Heading 1
- Headings indicate meaning, a change in section or topic, and indicate the information hierarchy
- Meaningful information should be at the beginning of the heading
so the reader gets the clarifying information first (helps cognitive
and screen reader accessibility)
- Heading levels shouldn't be skipped
- Heading styles should not be used for styling text, use the application's styles for changes to the look of the text
Heading examples:
Correctly used headings
- Title: UTMB Disaster Guide
- Heading 1: Flood preparation
- Heading 2: Water storage
- Heading 2: Sandbags
- Heading 1: Fire preparation
- Heading 2: Evacuation plan
- Heading 2: Fire extinguishers
Incorrectly used headings:
- Title: UTMB Disaster Guide
- Heading 1: Preparing for a flood
- Heading 3: How to store water
- Heading 3: How to store sandbags
- Heading 1: Preparing for a Fire
- Heading 2: Evacuation plan
- Heading 4: Rope ladders
- Heading 4: Rope ladders
- Heading 2: Evacuation plan
- Heading 1: Preparing for a flood
Relates to:
Ensure fonts and text are readable
The text is readable.
- The font style is clear and easy to read: UTMB uses Minion Pro (if unavailable use Georgia ) or Helvetica Neue (if unavailable use Arial )
- Text size is at least 14pt
- Any text with color has a clear contrast from the background
Indicate meaning using more than just color
Color can't be the only way to indicate the meaning of an item.
Example 1
Hyperlinks (links) that are only indicated by a change in text color
Solutions:
- Hyperlinks should be underlined
- Additional affects should be added for focus and hover that do not rely on color alone. (UTMB is currently adding a second underline. For example, cards on the this site have a dashed edge on hover)
Example 2
Using green to indicate good, yellow to indicate warning, and red to indicate an error. A person with colorblindness or low vision will need additional formatting to distinguish between them.
Solutions:
- Use a label for each area in addition to the color
- Use a pattern in the color (such as stripes, or dots) so the meaning can be identified by texture
Relates to: WCAG 1.4.1 Use of Color
Ensure text and background have clear contrast
The color of text should be have clear contrast (be significantly different) from the color of the background.
Basic verification
- Look at the colors, do they stand out?
- Check the UTMB Color Palette to see recommended primary and contrasting colors.
- If someone was reading it with low light or without their glasses would it be easy to see?
Relates to:
Lists are used correctly
Overview
There are two kinds of lists; ordered (numbered) and unordered (bulleted).
Ordered lists
- Begin with a number
- Indicate an order or level of importance to each item
Accessibility tip:
A screen reader would read this list as, "Ordered lists, list with
three items. One, begin with a number. Two, Indicate an order or level
of importance to each item"
Bulleted lists
- Begin with bullets
- Items have equal importance
Accessibility tip:
A screen reader would read this list as, "Bulleted lists, list with two
items. Bullet, begin with bullets Bullet, Items have equal importance"
Remember to
- Decide which type of list is appropriate
- If there's an order or importance to each item use a numbered list and list each item in order
- Items are of equal importance; use a bulleted list
- If there are multiple lists on a page, select the correct format for each list based on its contents
- If there are multiple numbered lists, be sure to restart numbering for each new list of items
Accessibility tips
- Use the built-in list formatting for each application to create the list so that screen readers will indicate it is a list
- Web content creators and developers - these break the way that screen readers handle lists and shouldn't be used
list-style-type: none;display:inline;
Relates to: WCAG 1.3.1 Info and Relationships
Links are accessible
Overview
Do:
- Avoid one word links
- Create meaningful link text
- Limit links to seven words
- Limit the use of anchor links (cognitive, visual)
Don't:
- Use "click here", "click to," "image of" in the link
- Use the same link text for more than one link
- Change the link formatting from the standard
Hyperlinks (Links) need to be clear and easy to understand.
- Links should be a few words of text to a phrase
Best Practices
- Short: Links should be under 50 characters
- Unique text: Links shouldn't contain "More," "Read More," "Find out more," "Click Here," or have the same link duplicated on the page
- Links should be meaningful and indicate what selecting them will do (go to a page, email someone, download a document, etc.
- Avoid text instructing the user to click the link. If absolutely required; avoid using click, instead use select. (Not everyone is using a mouse and can click)
Email links
- Recommended: Email the marketing team
- Email the marketing team at marketing@example.com
Phone links
Notes: Use hyphens and include the country code.
<a href="tel:18005555555">1-800-555-5555</a>
For more, detailed information, see 3.5.6 Make Telephone Numbers "Click-to-Call"
Relates to:
Write hashtags in Title Case
What are hashtags?
- Hashtags create an automatic, descriptive label creating a label, highlighting the content's topic
- In most applications it also creates a link which activates a filter for other content that has been marked with that hashtag
- This makes content easier to find and increases exposure, sometimes it's also used to make a statement as in #ChangeMakers
Format
- They begin with a # (called a hash or pound sign) to set them apart from the rest of the text
- They don't use spaces, hyphens, or underscores
- Hashtags should be title case (#TitleCase) -- capitalizing each word makes it easier to see the division between words, for example in #utinservicetotexas it is difficult to see each word, adding the capital letters #UTinServiceToTexas, makes a big difference in readability
- Read over your hashtags, sometimes when the spaces are removed
unintentional words form, though using title case helps to limit that. For
example, with #webart, our eyes are naturally drawn to "we" which changes
"web art" to "we bart." If you use title case you can see the two words clearly #WebArt
- Use 5 to 7 hashtags per post
Examples
- #UTMB
- #MentalHealth UTinServiceToTexas #BetterTogether
- #DigitalAccessibility
- #Accessibility #Ally #Tech4Good
NOTE
Some applications will suggest the lower case version of a hashtag, you'll need to manually capitalize them until the applications are made accessible.
Use available accessibility checkers
Make sure to run available accessibility checkers or wizards
How can I check?
- Outlook - Check accessibility
- Word - Check accessibility
- PowerPoint - Check accessibility
- Excel - Check accessibility
Use the most accessible mail format
Best practice: Send email in HTML format (UTMB default)
Alternate: Send email in Plain Text format
Do not use: Rich Text
WebAIM PDF Accessibility
Use concise Uniform Resource Locators (URLs)
Overview
URLs are usually programmatically created, either by a CMS or generated by code but there are some things to ensure that they are accessible and well-formed. (Poorly formed URLs hamper SEO, which in addition to us being found on public search engines, hampers our internal search, as well.)
Best Practices
- Words should be separated by hyphens
- Periods and underscores must not be used
- URLs should be less than 170 characters long
Correct
- https://www.example.com/accessibility/correctly-formed
- https://www.example.com/accessibility/incorrectlyformed
Incorrect
Developer Note: Special characters like can be appended for searching and identifying
Include breadcrumbs on subpages
Video Best Practices
Verify before posting or sharing video content
- Is the video clear and easy to view?
- Does the video have captions?
- Have the captions been reviewed if they were automatically generated?
- Have you created the transcript (complete after the review)
- Have you checked all of the related links?
- Have you checked the video on mobile?
Most text is left-justified
Text alignment can affect reading speed and comprehension
- Centered text can be helpful or visually pleasing and a way to organize a page. Unfortunately, long sections of centered text significantly slow reading speed.
- Block or justified text
was originally used in newspapers to make the columns visually
appealing. This is achieved by randomly adding spaces between words so
that the last character of a word ends each column. Because the spacing
is different for each sentence this significantly slows reading speed
and can cause delayed comprehension.
Best practices:
- Center short sections of text, primarily use for headings and new sections
- Avoid block or justified text
Use a Page Title
Best Practices
The page name should be short and easy-to-understand and create a readable URL.
- The page title <title> short and easy-to-understand, summarizing page content.
- The label for the browser tab is created using the HTML title tag.
For example:
<head><title>100 Days of A11y Home</title></head>
Quick check
- Page name - easy-to-understand, summarizes the content of the page, generally short -- a few words
- Page title -
<title></title>- HTML with easy-to-understand, summarizes the content of the page, generally short -- a few words - Note: In Sitefinity, the name of the page is the page title and what will show in the browser tab
- Avoid beginning every web page title with UTMB, because then it will be the first word in all open tabs; making difficult to discern which tab is which. UTMB can still be used, usually for just the first page in a section or site.
Page title tips:
- Use short, meaningful names (tabs aren't very large)
- Distinguishing information should go first (since playbook and Microsoft are repeated, they go at the end)
Benefits
Following these guidelines improves accessibility (a11y), search engine optimization (SEO), and usability
Related to: WCAG 2.4.2 Page Titled
Headings should convey meaning - Advanced
Organizing your information with headings on a webpage or digital application
Use semantic HTML to create headings
- Each page must have only one Heading 1
- Heading levels be used in order and not skipped
- Headings indicate meaning, a change in section or topic, and indicate the information hierarchy
- Meaningful information should be at the beginning of the heading
so the reader gets the clarifying information first (helps cognitive
and screen reader accessibility)
- Heading styles should not be used for styling text; use CSS for changes to the look of the text
Heading examples
Correctly used headings
- h1: UTMB Disaster Guide
- h2: Flood preparation
- h3: Water storage
- h3: Sandbags
- h2: Fire preparation
- h3: Evacuation plan
- h3: Fire extinguishers
Incorrectly used headings:
- h1: UTMB Disaster Guide
- h2: Preparing for a flood
- h4: How to store water
- h3: How to store sandbags
- h4: Preparing for a Fire
- h5: Evacuation plan
- h3: Rope ladders
- h3: Rope ladders
- h5: Evacuation plan
- h2: Preparing for a flood
Relates to:
Don't auto-play audio
WCAG discourages auto-playing audio, especially if it lasts more than three seconds. Unexpected audio can be very disorienting for a number of users as well as interfere with screen readers.
Best practices:
- Have the users start the audio with a play button
- If audio auto-plays keep it to less than 3 seconds
- If it is imperative for audio to auto-play, have an obvious, correctly formatted button to stop audio at the top of the page
Relates to: WCAG 1.4.2 Audio Control
HTML Tables
Some tips for HTML tables:
- Try not to use tables just for layout
- A single column should be a list, not a table
- Use
<th></th>tags for header cells, it will make changes to the look and feel as well as help screen readers understand the table content and its location - Instead of merging cells, repeat information the in each column, this helps screen readers place content in the correct column
Checklist Wizards
Generate a checklist based on your project.