INFO 1300: Accessibility for Static Front-End Websites
Class 23: Accessibility for Static Front-End Websites
- Web Content Accessibility Guidelines (WCAG)
- Accessibility Principles
- Demo: Screen Reader
- Accessibility Audit
Copyright 2026, Kyle J. Harms
Website Accessibility
Websites, tools, and techniques are designed and developed so that people with disabilities can use them.
Discussion: Accessibility Reflection
Reflect on what you have learned this semester about accessibility.
Identify at least three (3) design and coding related practices that improve accessibility.
Web Content Accessibility Guidelines (WCAG)
A recommendation published by the Web Accessibility Initiative group at the World Wide Web Consortium (W3C) for making content accessible primarily for people with disabilities but also for limited-resource devices such as mobile phones.
WCAG 2.2 – https://www.w3.org/TR/WCAG22/
WCAG – Accessibility Levels
A – Basic requirement for some users with disabilities to be able to access and use web content.
AA – Removes significant barriers to accessing content. The standard most organizations and laws target.
AAA – Improvements and enhancement to web accessibility for some users with disabilities.
Accessibility Principles (POUR)
- Perceivable
- Operable
- Understandable
- Robust
Accessibility Principle: Perceivable
Users must be able to perceive it in some way, using one or more of their senses.
- text alternatives (
alt=) - video captions
- semantic markup
(
<nav>,<main>,<h2>) - logical heading hierarchy
- logical/intuitive navigation
- high contrast color choices
- don't rely on color alone to communicate information
- responsive design (zoom & reflow)
Perceivable: Heading Hierarchy
- Exactly one
<h1>per page. - Don't skip heading levels
(
<h2>→<h4>) - Choose a heading for its structure, not its size. (Use CSS to style its size.)
<h1>The Ithaca Zoo</h1>
<h2>Animals</h2>
<h3>Red Pandas</h3>
<h3>Giraffes</h3>
<h2>Plan Your Visit</h2>
<h3>Hours</h3>
<h3>Tickets</h3>
WCAG 1.3.1 Info and Relationships, 2.4.6 Headings and Labels
Perceivable: High Color Contrast
The foreground should have sufficient contrast with its background.
Contrast Ratio: The brightness of two colors relative to each other.
❌ #aaa on white (2.3:1) ❌ white on yellow (1.5:1)
✅ #767676 on white (4.5:1) ✅ white on Cornell red (6.8:1)
AA: $\geq$ 4.5:1 for regular text; $\geq$ 3:1 for large text (e.g. 24px)
WCAG 1.4.3 Contrast (Minimum)
Perceivable: Don't Rely on Only Color
Communicate information without solely relying on color.
| ❌ | ✅ | |
|---|---|---|
| Links | different color | + underlined |
| Current page | different color | + bold and/or a border/underline |
| Required fields (forms) | "required fields are in red" | + icon or text label (e.g. "required") |
WCAG 1.4.1 Use of Color
Perceivable: Responsive Design
Content can resize and reflow to fit the user's device and preferences.
Example: Low-vision users may zoom (200%, 400%, etc.)
- Content should reflow – no horizontal scrollbar when zoomed.
- Text should resize to 200% without breaking the layout.
WCAG 1.4.4 Resize Text, 1.4.10 Reflow
Accessibility Principle: Operable
Users must be able to control user interface elements (e.g. buttons must be "clickable" in some way – mouse, keyboard, voice command, etc.)
- keyboard navigation
(
<button>,<a>) - visible focus indicator (don't remove the focus ring)
- skip link ("skip to main content")
- purposeful animation (no flashing;
prefers-reduced-motion)
- descriptive link text (i.e. no click here)
- large clickable/tappable targets (at least 24×24px) with space between to prevent "miss-clicks"
- focused element is never hidden (e.g. under a cookie banner)
Operable: Skip Link
A document fragment link visible to assistive technology (e.g. screen readers) users that lets them skip repetitive front matter (e.g. navigation) and jump straight to the main content.
<body>
<a class="accessible-hidden skip-link"
href="#main-content">
Skip to main content
</a>
<header>
<nav> ... </nav>
</header>
<main id="main-content">
...
/* visible when keyboard focused */
.skip-link:focus {
left: 0;
top: 0;
width: auto;
height: auto;
}
WCAG 2.4.1 Bypass Blocks, 2.4.7 Focus Visible
Operable: Respect Reduced Motion
Some users experience dizziness, nausea, or distraction from motion.
@media (prefers-reduced-motion: reduce) {
/* TODO: turn off non-essential animation,
auto-playing carousels/videos, parallax, etc. */
}
Never flash content more than 3 times per second – it may trigger seizures.
WCAG 2.3.1 Three Flashes, 2.3.3 Animation from Interactions
Accessibility Principle: Understandable
The content must be understandable to all users.
- semantic markup (
<abbr>) - page/element language
(
<html lang="en">) - consistent navigation across pages
- descriptive headings and labels
- proximity between elements (elements related/unrelated)
- left-aligned body text
- ALL CAPS via CSS (
text-transform), not typed
Accessibility Principle: Robust
The content must be developed using well-adopted web standards that will work across different browsers and assistive technologies, now and in the future.
- valid HTML, CSS, and JavaScript (web standards)
- generic font families (font fallback if specific font not available)
- native elements for interactivity (
<button>,<dialog>) – not<div> - ARIA labels for non-text actions (
aria-label="show navigation")
Review: Accessible Interactivity
- Use
<button>for actions,<a>for links – never a clickable<div>. - Never turn off the focus ring (
outline: none). - Provide
aria-label=for buttons without standalone text (e.g. icons). - Hide with
.accessible-hidden(notdisplay: none) when assistive technology users still need the content. - A modal (
<dialog>) should command keyboard focus. - Large clickable/tappable targets.
Assistive Technologies
Website Accessibility – Visual Impairments
- Screen readers
- Screen magnifiers & browser zoom
- High-contrast themes
- Use of custom colors or styles
- Braille displays
- etc.
Website Accessibility – Deaf and Hard-of-Hearing
- Text alternatives
- Captions
- Transcripts
- etc.
Website Accessibility – Mobility Impairments
- Keyboard navigation
- Voice access
- Head Trackers
- Eye Trackers
- Switch devices
- Sip-and-puff devices
- etc.
Website Accessibility – Cognitive Impairments
- Plain language & clear writing
- Minimize distractions
- Minimize flashing and animations
- "Reader" view
- etc.
Assistive Technologies
Screen Readers
Screen Reader Navigation
Screen reader users rarely listen to a page from top to bottom. They skim by jumping between:
- Headings (
<h1>–<h6>) - Landmarks (
<header>,<nav>,<main>,<footer>) - Links – a list of every link's text, out of context
- Buttons and other interactive elements (Tab key)
Semantic markup and descriptive link text aren't just best practice – they are the navigation for the page.
Demo: Screen Readers
- screen reader
- keyboard navigation
- zoom (and reflow)
Authoring Accessible Websites
Employ the design and coding best practices you have learned this semester.
Audit/check your website for accessibility compliance:
- WCAG checklist: https://webaim.org/standards/wcag/checklist
- Manual testing: keyboard only, zoom, and a screen reader
Activity: Accessibility Audit
Working with a peer, conduct an accessibility audit using your handout of your project website.
What's Next?
Today: Homework 8 Due
Friday: Practice Quiz 6
Next Monday: Final Milestone Due