4. ARIA Flashcards
¿What does accessibility of web content requires?
Semantic information about user input widgets, structures, and behavior, to allow specific technologies to convey appropriate information to people with disabilities.
¿What does native elements do for us?
Using native elements for optimal keyboard usability also gives us the built-in semantics used by assistive technology to present a customized interface.
¿What do we need to think about in accessibility?
We need to think about labeling controls, images and being sure to add page structure using headings and other semantic HTML elements to provide landmark information for assistive technology, plus the importance of links in creating a rich interactive experience in a complex site.
¿What is ARIA?
Is a way where we can express semantics, which HTML can’t express on its own.
¿Why should we use native elements?
Because they give you focus, keyboard support, and built in semantics essentially for free.
¿What is WAI-ARIA good for?
The Web Accessibility Initiatives Accessible Rich Internet Applications spec is good for bridging areas where there are accessibility issues that can’t be managed with native HTML.
¿How dos ARIA works?
Aria works by allowing us to specify attributes on elements which modify the way that element is translated into the accessibility tree.
Note about ARIA attributes
ARIA attributes always need to have explicit values.
¿What does ARIA Role and ARIA-check attributes do to the accessibility tree?
Adding that role attribute and that aria-checked attribute causes the node in the accessibility tree to have the desired role and state, without changing anything else about that node’s appearance or behavior.
¿What does ARIA do in terms of accessibility tree?
In terms of the accessibility tree, what ARIA does is allow you to essentially do some tree surgery. We take the accessibility tree as generated from the plain HTML tree, add ARIA and get a different accessibility tree.
¿What can ARIA do?
- ARIA attributes can be used in a number of ways to augment the existing ways we can express semantics in HTML.
- ARIA can add semantics to an element where no native semantics exist.
- ARIA can also modify existing elements semantics within certain bounds.
- In many cases, ARIA allows us to create accessible widgets which would not be possible using plain HTML.
¿What is ARIA Role?
One of the core aspects of the ARIA system. It is an accessibility term, amounts to a shorthand for a particular UI pattern.
¿What does ARIA provides for the role attribute?
ARIA provides a vocabulary of patterns we can use via the role attribute on any HTML element.
¿What happens when i assign the role=checkbox?
We are telling assistive technology that the element should follow the checkbox pattern and We’re promising that it will have a checked state, either checked or not checked, and that the state may be toggled using the mouse or via the space bar.
¿Where is the role attribute applied and why?
The role attribute is always applied in the same place as the tabindex attribute so that keyboard events will go to the right place and so that when page focus lands on an element, its role is conveyed accurately.
¿What is ARIA the only way for?
Aria is the only way to add accessible help or description text.
¿What does Aria-label do?
Aria-label allows us to specify a string directly to be used as the accessible label.
¿What can i use aria-label attribute for?
One situation in which i can use an aria-label attribute is where i have some kind of visual indication as to the purpose of an element. But still need to clarify that for anyone who might not be able to access that visual indication, such as a button which uses a graphic to indicate its purpose.
¿What does aria-label overrides?
It overrides any other native labeling mechanism such as a label element. For example, if a button has both text content and an aria-label, only the aria-label value will be used.
¿What does Aria-labelledby do?
Aria-labelledby allows us to specify an element ID to refer to another element in the dumb as this element’s label.
¿Where can Aria-labelledby be used?
Aria-labelledby may be used on any element.
¿What are the differences between an Aria-labelledby and a label?
- Aria-labelledby may be used on any element, not just labellable elements.
- While a label element refers to the thing it labels, the relationship is reversed in the case of aria-laelledby. The thing which is labeled refers to the thing which labels it.
- Since aria only affects the accessibility tree, aria-laelledby by does not give you the nice label clicking behavior you get from the label element.
- Aria-labelledby can take a list of ID refs to compose a label out of multiple elements. The label will be concatenated in the order the ID refs are given.
- Aria-labelledby can refer to elements which are otherwise hidden from assistive technology.