HTML Accessibility Flashcards
What does WCAG stand for?
Web Content Accessibility Guidelines
WCAG is a set of guidelines for making web content more accessible to people with disabilities.
What are the four principles of WCAG?
POUR: Perceivable, Operable, Understandable, Robust
These principles guide the creation of accessible web content.
Define screen readers.
Software programs that read the content of a computer screen out loud
Used by people who are blind or visually impaired to access the web.
What are large text or braille keyboards used for?
Accessing the web by people with visual impairments
These tools aid in web navigation for users with vision challenges.
What is the function of screen magnifiers?
Software programs that enlarge the content of a computer screen
Used by people with low vision to access the web.
What are alternative pointing devices?
Devices like joysticks, trackballs, and touchpads used by people with mobility impairments
These devices help users navigate the web.
What does voice recognition allow users to do?
Control a computer using their voice
This technology is especially useful for people with mobility impairments.
Name four common accessibility tools.
- Google Lighthouse
- Wave
- IBM Equal Accessibility Checker
- axe DevTools
These tools are used to audit the accessibility of a website.
Why is proper heading level structure important?
It creates a logical structure for content, aiding assistive technology users
Helps users understand the content of a website.
What elements should be used in tables for accessibility?
- th element for header cells
- td element for data cells
- caption element for table title
These elements help assistive technologies understand the structure of the table.
What is the importance of having an associated label for inputs?
Helps people using assistive technologies understand the purpose of the input
The label element should be used for this association.
What is the purpose of the alt attribute?
Provides a text alternative for images
This aids users with assistive technologies in understanding image content.
What should descriptive link text do?
Help users understand the purpose of the link
This is essential for users relying on assistive technologies.
What should be provided for audio and video content to make it accessible?
- Captions
- Transcripts
- Audio descriptions
These adaptations assist users with hearing and visual impairments.
What is the tabindex attribute used for?
To make elements focusable and define the navigation order using the keyboard
Values should be 0 or -1; values greater than 0 should be avoided.
What does the accesskey attribute define?
A keyboard shortcut for an element
This helps users with mobility impairments navigate the website more easily.
What does WAI-ARIA stand for?
Web Accessibility Initiative - Accessible Rich Internet Applications
It enhances HTML elements with attributes for better accessibility.
What are aria roles used for?
To define the purpose of HTML elements for assistive technologies
Examples include role=’tab’, role=’menu’, and role=’alert’.
List the six main categories of ARIA roles.
- Document structure roles
- Widget roles
- Landmark roles
- Live region roles
- Window roles
- Abstract roles
These categories help users navigate and understand content.
What is the purpose of the aria-label attribute?
To give an element a programmatic name for accessibility
Useful when the visual label is not text.
What does the aria-hidden attribute do?
Hides an element from assistive technologies
This is used for decorative images that do not convey meaningful content.
What does the aria-expanded attribute indicate?
The state of a toggle feature to screen reader users
It helps users understand whether a menu or section is expanded or collapsed.
What is the function of the aria-live attribute?
Indicates that changes to an element’s content should be announced immediately to screen reader users
This is useful for dynamic content updates.
What are common ARIA states?
- aria-haspopup
- aria-checked
- aria-disabled
- aria-selected
These attributes indicate the state of an element for assistive technologies.