<?xml version="1.0" encoding="utf-8"?>

Text is a powerful tool that provides information and encourages visitors to act on your website. Text is everywhere, from articles to button labels, and that's why its accessibility is so vital to user experience.

Font choice, vocabulary choice, font size, color contrast, spacing, and headings' structure affect users' perception of text. If something is off and users fail to read and scan content, they leave. Not only does compliance with WCAG recommendations make the copy readable and legible for sighted users, but it also enhances the accessibility for visually impaired users, older people, or people with temporary impairments, like eye surgery.

Exercise #1

Use simple language

Use simple language Bad Practice
Use simple language Best Practice

Text is the bread and butter of any interface, so it's essential to make it available to everyone, regardless of their disabilities or education level. Write in a manner that can be easily understood by individuals with a secondary education level. The goal is not to dumb things down but to use simple words to explain complicated concepts.

Keep your message clear and concise. Avoid long sentences. A good rule of thumb here is "one sentence, one idea." If a sentence requires a semicolon, it most likely can be split in two. Use simpler vocabulary; for example, words like "affluent" and "fortuitous" are more difficult to understand than "rich" and "lucky."

Complex content sometimes can't be simplified further. In these cases, the WCAG recommend providing additional materials that explain the same information in simpler terms. This might include summaries, glossaries, or visual explanations that complement the main content.

Exercise #2

Avoid idioms and figures of speech

Avoid idioms and figures of speech Bad Practice
Avoid idioms and figures of speech Best Practice

People with language comprehension difficulties or learning disabilities may find phrases with double meanings confusing. This includes idioms, puns, and figurative language that can create barriers to understanding your content.

Idioms are expressions where the combined meaning differs from the individual words. When someone reads "couch potato" in a productivity article, they might be confused by the seemingly random mention of vegetables on furniture. The intended meaning of "lazy person" isn't apparent from the words themselves, especially for those learning the language or using translation tools.

Figurative language and cultural references can be equally challenging. A phrase like "my lobster" (referencing the TV show "Friends" to mean "soulmate") will confuse many users who aren't familiar with that specific cultural context. Keeping language literal and direct ensures your message reaches the widest possible audience.

Exercise #3

Choose legible typeface

Choose legible typeface Bad Practice
Choose legible typeface Best Practice

When designing for everyone, it's important to make sure that your text looks clear and legible. Choose typefaces that:

  • Look good regardless of the font size
  • Have a large x-height — the size of flat lowercase letters — as they are comfortable to read even at a smaller font size
  • Have consistent letter shapes but clear distinctions between similar letterforms like 0 and O or 1, I (i), and l (L)
  • Support all of the characters and font styles that you need

Refer to the U.S. Web Design System for open-source typeface recommendations that emphasize legibility.

Exercise #4

Follow font size recommendations

Follow font size recommendations

Font size directly impacts text legibility for all users who rely on vision. Selecting appropriate sizes ensures your content remains accessible across different age groups and visual abilities.

Our vision naturally changes as we age, making text readability increasingly important. Research shows that by age 60, only about one-third of the light reaches the retina compared to age 20.[1]This physical change makes smaller text significantly harder to read for older adults, who form a growing segment of digital users.

To accommodate these natural vision changes, use font sizes that work for everyone. While specific recommendations may vary slightly depending on the typeface chosen, 16px is generally considered the minimum acceptable size for body text.[2]Headings and other important elements should be proportionally larger to establish a clear visual hierarchy and improve overall readability.

Exercise #5

Apply optimal line length

Apply optimal line length

Reading happens through a series of small visual jumps, with our eyes capturing about 5-10 characters in each movement. When lines are too long, readers struggle to track their position and often lose their place when moving to the next line. Conversely, extremely short lines force frequent eye movements and line transitions, causing unnecessary strain and slowing reading speed.

For optimal readability, aim for 45-75 characters per line, including spaces.[3] This range allows readers' eyes to make approximately 6-12 comfortable stops per line, creating a natural reading rhythm. You can use shorter line lengths for specific elements like captions, forms, or side notes where brief, scannable text is appropriate.

Exercise #6

Align content according to text direction

Align content according to text direction Bad Practice
Align content according to text direction Best Practice

Text alignment should follow the natural reading direction of your content's language. This simple principle significantly improves readability and user experience across different language systems.

Most languages use left-to-right (LTR) scripts, making left alignment the default standard for English and many other Western languages. This alignment creates a consistent starting point for each line, helping readers track their position within the text. For languages that use right-to-left (RTL) scripts, such as Arabic and Hebrew, content should be aligned from right to left to match their natural reading pattern.

Exercise #7

Make headings stand out

Make headings stand out Bad Practice
Make headings stand out Best Practice

Headings organize your content and help users understand its structure at a glance. They need to work effectively for both visual readers and those using assistive technology.

Visual distinction helps sighted users scan content quickly. Using larger font sizes, bold weights, or different colors makes headings immediately recognizable as signposts throughout your content. This visual hierarchy creates natural entry points that break up text and guide readers through the information.

The technical implementation of headings is equally important for accessibility. Always use proper HTML heading tags (<h1> through <h6>) rather than just styling text to look like headings. Screen readers and other assistive technologies rely on these semantic tags to announce headings and allow users to navigate between sections. Without proper heading markup, people using assistive technology miss the structure that visual users can see.

Exercise #8

Use the <h1> tag for the page title

Use the <h1> tag for the page title Bad Practice
Use the <h1> tag for the page title Best Practice

The HTML heading system provides 6 levels to create a clear content hierarchy on your page. Using these tags correctly helps all users understand your content's organization.

The <h1> tag represents the most important heading on the page and should contain your page title. Think of it as the main subject of your content—what the entire page is about. Since each page should have only one main topic, use only one <h1> element per page. This single top-level heading helps users immediately understand the page's purpose.

Your page title should be descriptive and meaningful. When someone encounters your page, the <h1> heading should clearly communicate what information they'll find there. Screen reader users often navigate through headings, making the <h1> their first major landmark when exploring your content. Search engines also give special weight to this heading when determining what your page is about.

Exercise #9

Organize headings by their rank

Organize headings by their rank Bad Practice
Organize headings by their rank Best Practice

After using <h1> for your page title, use lower-level headings to divide your content into sections and subsections. The <h2> tags mark major sections. Think of them as chapter titles that introduce new topics or significant content breaks. Use <h3> through <h6> for progressively smaller subsections within those main sections, creating a nested outline structure.

This hierarchical approach helps users understand how information is organized on your page. Visual users can quickly scan the page and grasp the relationship between different content sections. For people using screen readers, proper heading structure allows efficient navigation through content using heading shortcuts. Search engines also use this structure to better understand and index your content.

Pro Tip: Outline your content structure before writing to plan your heading hierarchy. This ensures your headings follow a logical progression rather than being assigned arbitrary levels.

Exercise #10

Don't skip heading levels

Don't skip heading levels Bad Practice
Don't skip heading levels Best Practice

Screen reader users frequently navigate websites by jumping from heading to heading, similar to how visual users scan page headings. When you skip levels (like jumping from <h1> directly to <h3>), you create gaps in this navigation path. These gaps can disorient users, who may wonder if they've missed important content or if the page structure is broken.

Sometimes design considerations might tempt you to skip heading levels. For instance, a section might be visually distinct enough that it doesn't need an <h2> for sighted users, while subsections use <h3> tags. In such cases, you can add an <h2> with appropriate styling to make it visually hidden while keeping it available to screen readers. This maintains the proper heading hierarchy for all users without disrupting your visual design.

Pro Tip: Think of your heading structure as an outline or table of contents. If it wouldn't make sense in document form, it probably doesn't work as a heading hierarchy either.

Complete this lesson and move one step closer to your course certificate