|
| 1 | +# About using aria in Web Development projeccts. |
| 2 | + |
| 3 | +The most commonly used ARIA attributes are those that help to improve the accessibility of dynamic content, interactive widgets, and complex user interfaces. These attributes are particularly useful for making web applications more accessible to users with disabilities, especially those who rely on assistive technologies like screen readers. There are tons of these attributes. This is not intended to be a complete list of attributes. |
| 4 | + |
| 5 | +Here's a list of the most commonly used ARIA attributes. |
| 6 | + |
| 7 | + aria-label: Provides a text description of an element, which is useful for elements that do not have a visible label. It's commonly used for form inputs, buttons, and other interactive elements. |
| 8 | + |
| 9 | + aria-labelledby: Points to the ID of another element that labels the current element. This is useful for providing a label for elements that do not have a visible label. |
| 10 | + |
| 11 | + aria-describedby: Points to the ID of another element that describes the current element. This is useful for providing additional information about an element. |
| 12 | + |
| 13 | + aria-hidden: Indicates whether an element is exposed to an accessibility API. It's used to hide content from assistive technologies. |
| 14 | + |
| 15 | + aria-readonly: Indicates whether an element is read-only. This is useful for form elements that cannot be edited by the user. |
| 16 | + |
| 17 | + aria-required: Indicates that user input is required on the element before submission. This helps assistive technologies inform users about mandatory fields. |
| 18 | + |
| 19 | + aria-disabled: Indicates whether an element is disabled. This is useful for form elements that are not interactable. |
| 20 | + |
| 21 | + aria-checked: Indicates the checked state of a checkbox or option element. This is useful for form elements that can be checked or unchecked. |
| 22 | + |
| 23 | + aria-expanded: Indicates whether a section has expanded content. This is useful for collapsible sections or accordions. |
| 24 | + |
| 25 | + aria-pressed: Indicates whether a button is pressed. This is useful for toggle buttons or checkboxes. |
| 26 | + |
| 27 | + aria-selected: Indicates whether an element is selected. This is useful for list items, options, and other elements that can be selected. |
| 28 | + |
| 29 | + aria-multiselectable: Indicates whether an element that has the role attribute set to listbox, tree, or grid has multiple items that can be selected at once. |
| 30 | + |
| 31 | + aria-sort: Indicates whether an element contains sort controls. This helps users understand how to sort the content of a table or list. |
| 32 | + |
| 33 | + aria-valuemin, aria-valuemax, aria-valuenow, aria-valuetext: These attributes are used with range inputs like sliders and progress bars to provide information about the current value, minimum value, maximum value, and the text equivalent of the current value. |
| 34 | + |
| 35 | + aria-live: Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. This is crucial for dynamic content that changes over time. |
0 commit comments