Please enable JavaScript to use CodeHS

Web Design — Inclusive Design

Web accessibility: design for everyone

A website works best when people can understand and use it in different ways. Learn how thoughtful structure, words, and interactions open the web to more people.

Students & Teachers ~25 min Middle / High School
The Big Idea

What accessibility means

Web accessibility means designing websites and apps so people with disabilities can perceive, understand, navigate, and interact with them. It also helps people using a phone in bright sunlight, watching a video in a quiet room, recovering from an injury, or working with a slow connection.

People do not all use the web in the same way. Some enlarge text. Some listen with a screen reader. Some navigate with a keyboard, switch, or voice commands. Accessible design gives people more than one way to get information and complete a task.

  • Notice barriersExplain how a design choice can help or block someone.
  • Use core patternsWrite clearer structure, alternatives, labels, and controls.
  • Test your workCheck a page with a keyboard, zoom, and more than one perspective.

Vision

People may use screen readers, magnification, high contrast, or larger text.

Hearing

Captions and transcripts make audio information available without sound.

Movement

Keyboard and switch access matter when a mouse or touchscreen is difficult to use.

Thinking and learning

Clear language, consistent layouts, and enough time can reduce confusion and overload.

Teacher idea: Ask students to name a situation when they benefited from captions, zoom, voice input, or a keyboard shortcut. Accessibility features often help far more people than their original audience.


Explore

Choose a topic

Start anywhere, or work through the topics in order to review a whole page.


Topic 1

Build a clear page structure

A sighted reader can glance at size, spacing, and position to understand a page. HTML structure provides the same kind of map to browsers and assistive technology.

Use one main heading for the page. Put related content under descriptive subheadings. Use real lists for groups of items and meaningful elements such as nav, main, and section for major regions.

Hard to understand
<div class="big">Club News</div>
<div>- Robotics</div>
<div>- Art</div>
Clear structure
<h2>Club News</h2>
<ul>
  <li>Robotics</li>
  <li>Art</li>
</ul>

Try this: Read only the headings on a page. Do they form a useful outline of what you will learn?


Topic 2

Describe the purpose of images

Alternative text, or alt text, gives an image a text alternative. Good alt text communicates the information or purpose that matters in context. It does not need to list every visible detail.

If nearby text already communicates everything, an image may be decorative and use empty alt text. A chart, diagram, or instructional image usually needs a specific description.

Which alt text best shares the point of this chart?


Topic 3

Make links and controls understandable

A link goes somewhere. A button does something. Using the correct HTML element gives people familiar keyboard behavior and tells assistive technology what kind of control it is.

Control names should explain their purpose. “Read the robotics schedule” is clearer than “click here.” An icon used without visible text needs a name that describes the action.

Vague
<a href="schedule.html">
  Click here
</a>
Specific
<a href="schedule.html">
  Read the robotics schedule
</a>

Classroom discussion: Imagine hearing every link on a page as a list, without the paragraphs around it. Which link names would still make sense?


Topic 4

Label forms and explain errors

Every form field needs a visible label that stays on screen. Placeholder text disappears as someone types, so it cannot do the label's job. Put instructions before people need them, and explain errors with words instead of color alone.

Use the address provided by your school.

Good error message: “Enter an email address with an @ symbol” tells someone what happened and how to fix it. “Invalid input” does not.


Topic 5

Connect data with table headers

Data tables show relationships across rows and columns. Use a caption to name the table and header cells to identify what each value means. Do not use a table just to arrange a page visually.

After-school club meeting times
ClubDayRoom
RoboticsTuesday204
ArtWednesday118
DebateThursdayLibrary

A screen reader can announce “Robotics, Tuesday, Room 204” because the headers define the relationships. Without headers, the same values can sound like an unrelated list.


Topic 6

Navigate without a mouse

Some people navigate with a keyboard because they cannot use a mouse, prefer not to use one, or use technology that sends keyboard-like commands. Every link, button, menu, and form field should be reachable and usable.

Challenge

Take the keyboard tour

  1. Press Tab to move forward through this page.
  2. Press Shift + Tab to move backward.
  3. Watch for a visible outline showing where you are.
  4. Use Enter on a link and Enter or Space on a button.

Could you always tell where you were? Could you reach every control? If not, you found a barrier.

Focus matters: The visible marker around the current control is called a focus indicator. Never remove it unless you replace it with something equally clear.


Put It Into Practice

Plan for access, then test

Accessibility works best when it begins with the first sketch, not as a final repair. Include people with disabilities in research and testing when possible. No automated checker can replace people using a real page.

Read the outline

Do the page title and headings explain the content in a logical order?

Use only a keyboard

Can you see where you are and complete the main task?

Zoom to 200%

Does content reflow without hiding text or controls?

Check alternatives

Do images, video, and audio have useful text alternatives?

Teacher activity: Give small groups the same webpage and one test method each. Combine their findings into one class accessibility review.


Check Yourself

Quick quiz

1. What is the main goal of web accessibility?

2. Which image description is usually most useful?

3. Why should you test a page with a keyboard?

Keep learning

Accessibility is a design habit, not a one-time checklist. Explore the W3C tutorials for deeper examples, or continue learning how contrast and hierarchy shape a readable page.

Built for students and teachers learning inclusive web design.