was-flashcards v2
What exactly is ARIA?
ARIA (Accessible Rich Internet Application) is the acronym for Accessible Rich Internet Application. In other words: ARIA has no procedural logic or interactivity on its own. To create a interactive widget, you need to use JavaScript to give the content functionality, and you use ARIA to label things appropriately with names, roles, states, properties, and relationships. ARIA is essentially an API for communicating this information to screen readers.
What can ARIA do?
labels or names for items (e.g. using aria-label or aria-labelledby or similar) roles, role=”navigation”, role=”main” etc. states of dynamic/interactive components (e.g. aria-selected=”true”, aria-expanded=”true”, aria-hidden=”true”) properties of items (e.g. aria-haspopup=”true”) relationships between items (e.g. aria-owns, aria-controls, both of which describe a kind of parent-child relationship where one item owns or controls another) live announcements in real-time that are passed on to screen readers
True or False If there is an aria-labelledby attribute, the text it refers to will override all other name and label methods.
True
In practice, screen reader support for aria-label and aria-labelledby is best on which elements?
Focusable elements (<a>
, ````, etc.). Support is not as good on non-focusable elements (<p>
, </p><div>
, <span>
, <h1>
, etc.).</h1></span>
`` Elements with semantic meaning, as opposed to the elements that do not have semantic meaning (like <div>
and <span>
).</span>
Application regions (role=”application”). But be very careful with application regions, because they disable most of the screen reader’s regular keyboard shortcuts. on elements inside an application region (e.g. <div>
)</div></div></div></a>
What landmark regions do you know? What native HTML Landmarks?
Available landmark regions include: application banner complementary contentinfo form main navigation search HTML 5 defines landmarks as well, with such tags as: (equivalent to role="banner")
(equivalent to role=”navigation”) (equivalent to role="main")
(equivalent to role=”complementary”) (equivalent to role="contentinfo")
````````
What are the most important ARIA Roles?
alert alertdialog application dialog group log marquee menu menubar menuitem menuitemcheckbox menuitemradio progressbar separator slider spinbutton status tab tablist tabpanel timer toolbar tooltip tree treegrid treeitem
pseudo-HTML roles
button checkbox columnheader combobox contentinfo form grid gridcell heading img link listbox listitem option radio radiogroup row rowgroup rowheader scrollbar textbox
All of the following are ways to communicate the names of elements, EXCEPT: A. aria-labelledby B. C. role=”name” D. aria-label
C. role=”name”
True or False: aria-label and aria-labelledby consistently work for labelling non-semantic elements such as <div>
and <span>
.</span>
</div>
false
The purpose of ARIA roles is to: A. Provide the name of the element. B. Define what the element is. C. Identify the state of the element. D. None of the above.
B. Define what the element is.
Which type of ARIA roles are used to convey the layout of a web page? A. Landmark roles B. Abstract roles C. Pseudo HTML roles. D. Widget roles
A. Landmark roles
True or False: It is best to use actual HTML elements instead of pseudo HTML roles so developers don’t always have to create functionality for elements by using JavaScript.
-true
True or False: Assigning role=”application” to a region disables most screen reader keystrokes within the region to allow developers to create custom keystrokes.
True
Which role should be assigned within an application region to give screen readers access to regular text in the region? A. Presentation role B. Main role C. Note role D. Document role
D. Document role
ARIA attributes like aria-expanded, aria-checked, and aria-busy convey what information to screen reader users? A. The names of elements. B. The states of elements. C. The roles of elements. D. None of the above.
B. The states of elements.
Which ARIA attribute is used to provide additional information about an element? A. aria-labelledby B. aria-describedby C. role=”description” D. aria-label
B. aria-describedby
True or False: The difference between aria-live=”assertive” and aria-live=”polite” is that aria-live=”assertive” waits for a screen reader to finish its current statement before announcing new content. A. True B. False
False
True or False: ARIA is a programming language that communicates information like names, roles, and values to screen readers.
False
True or False: ARIA was invented to increase screen reader accessibility, especially for interactive scripts.
True
There are 82 ARIA roles. Each role falls into a category. Do you know these categories?
Abstract (don’t use these), Widget, Document structure, Landmark, Live region, Window
What defines WAI ARIA?
It defines attributes that can be added to standard HTML to define the name, role and values (Properties and states) of elements, especially for custom widgets.
What are characteristics of aria-label? A: Invisible B: Related to the ID of another element C: Contains a string D: Does not allow the text to be clicked E: Defines a new name for the element, which usually comes from its content F: A,C,D,E
F: A,C,D,E A: Invisible C: Contains a string D: Does not allow the text to be clicked E: Defines a new name for the element, which usually comes from its content
What are characteristics of aria-labelledby? A: Defines a new name for the element, which usually comes from its content B: Related to the ID of another element C: Can relate multiple ids from different elements D: The related texts are normally visible in the page E: Replace the element name presented to assistive technologies that usually comes from its content F: B,C,D,E
F: B,C,D,E B: Related to the ID of another element C: Can relate multiple ids from different elements D: The related texts are normally visible in the page E: Replace the element name presented to assistive technologies that usually comes from its content
What are characteristics of aria-describedby? A: Relates the id of another element. B: Provide additional information to the element C: Invisible D: A, B
A: Relates the id of another element. B: Provide additional information to the element
```` Für Screenreader ist das eine Schaltfläche in einer Überschrift`````
````` Für Screenreader ist das eine Schaltfläche in einer Überschrift`````
``text`< /h1>` h1 will no longer appear in the list of headings for screen readers `
``heading tab`
` B: ``heading tab`
```heading tab`
```-`` for heading How can you ensure accessible for visual heading in a ``, ``, `` that cant be turned into an html heading?`
`
` that cant be turned into an html heading?`
``Error: Password must be at least be 8 characters`
` `` Password: `` ```` D. ``Error: Password must be at least be 8 characters`
` `` Password: `` `````Error: Password must be at least be 8 characters`
` `` Password: `` ````` `` `` `` `` `` B. `` `` `` `` `` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`
` `` `` `` B. `` `` `` `` `` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`
` `` B. `` `` `` `` `` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`
` `` `` `` `` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`
` `` `` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`
` `` C. `` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``
``
`` `` `` `` `` `` D. `` `` `
``
``
``
``
``
``
``
``` `` `` `` D. `` `` `
``
``
``
``
``
``` `` D. `` `` `
``
``
``
``` `` `
``
``` `` `` `` `` `` `
``
``
``
``
`
` `` `` `` `
``
``
``
``` `` `
``
```) at the beginning of the main content says “How to hang ten on a surfboard,” the most appropriate `` for the page from among the options below would be: A. How to ride a surfboard B. Surfing tutorial C. Summers in California D. How to hang ten on a surfboard E. An article describing how to hang ten on a surfboard, describing the techniques and circumstances in which it is possible to do it
``
` B. ``Legal disclaimer`` C. ``Understand yourself`
``) cannot directly follow a heading 2 (``), for example. The next subheading under the heading 2 (``) MUST be a heading 3 (``).
`) MUST be a heading 3 (``).
`1. First item`
```2. Second item`
```3. Third item`
`Twin mattress ``$300`` ``$250``!`