Coding for Accessibility Flashcards
What aria property sets a form field as required?
aria-required
What is the HTML tag equivalent of landmark role=banner?
<header>
What is the HTML tag equivalent of landmark role=complementary?
<aside>
What is the HTML tag equivalent of landmark role=contentinfo?
<footer>
What is the HTML tag equivalent of landmark role=navigation?
<nav>
What are the 8 landmark WAI-ARIA roles?
- banner
- complementary
- contentinfo
- form
- main
- navigation
- region
- search
What is the HTML tag equivalent of landmark role=region?
<section aria-label>
Which semantic element displays a hand pointer on hover state?
Link
Is touch functionality covered by support for click events or keyboard events?
Click events
What is the minimum recommended touch target size?
44 x 44 px
What is the effect of role=presentation on screen readers?
It removes the default semantics and implicit ARIA from the accessibility tree. For example, and <h2> will be treated as a <div>
Is keeping headings in hierarchal order a MUST or a SHOULD for AA conformance.
SHOULD
What aria attribute tracks paginated views for screen readers?
aria-current
What is the main thing to add when coding an accessible iframe (MUST exist for AA conformance)
a non-element title attribute
Example:
<iframe title="Video: Specify the Language" width="560" height="315" src="https://www.youtube.com/embed/qyjDrUV_el8" frameborder="0" allowfullscreen> </iframe>
What would be considered the best practice when choosing the title attribute for an iframe?
It should match the <title>
element of the enclosed document.
How do the headings of an iframe relate to the headings of the main page?
The iframe headings are part of the main page accessibility tree and SHOULD be designed to fit into the main page hierarchy if possible.
What aria attribute should be added to an iframe without meaningful content
aria-hidden