--- url: "https://www.w3.org/WAI/WCAG22/Techniques/aria/ARIA26" titulek: "ARIA26: Using aria-current to identify the current item in a set | WAI | W3C" h1: "Technique ARIA26:Using aria-current to identify the current item in a set" popis: "" jazyk: "en" kanonicka: "" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 04:42:39" znaku: 3620 slov: 497 kodovani: "utf-8" sha256: "a610fa704c0ff191c23d35e46ee05751349e555875ae48770080ff0f527dea4d" --- # Technique ARIA26:Using `aria-current` to identify the current item in a set ## About this Technique This technique relates to: - [1.3.1 Info and Relationships](https://www.w3.org/WAI/WCAG22/Understanding/info-and-relationships) ( **Sufficient** when used for making information and relationships conveyed through presentation programmatically determinable) - [2.4.8 Location](https://www.w3.org/WAI/WCAG22/Understanding/location) ( **Sufficient** ) This technique applies to technologies that support [Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/TR/wai-aria/). Techniques are examples of ways to meet Web Content Accessibility Guidelines (WCAG). They are **not required** to meet WCAG. Content can satisfy the normative requirements of WCAG even if it does not use any of the documented techniques. See [About WCAG Techniques](https://www.w3.org/WAI/WCAG22/Techniques/about). ## Description The purpose of this technique is to programmatically indicate the current item in a user interface component that contains a set of related items. The `aria-current` attribute provides a way to programmatically indicate the element that is usually only visually highlighted, for example: the current page in a navigation bar. ## Examples ### Example 2: Identify the current step in a process This is an example of `aria-current` used to mark up the steps in a recipe. It uses the attribute's `step` value to programmatically identify the current step: ```

Meringue Recipe Steps

  1. Heat your oven
  2. Separate eggs
  3. Whisk egg whites
  4. Whisk in the sugar
  5. Pipe mixture into shapes
  6. Bake
  7. Allow to cool
``` [A working example of identifying the current step in a process](../../working-examples/aria-current/#example2). ### Example 3: Identify the current time in a timetable This is an example of `aria-current` used to mark up the current time in a timetable. It uses the attribute's `time` value to programmatically identify the current lesson in a class schedule: ```

Morning Class Schedule

Time Subject
Morning Meeting
Math
Reading
Recess
Music
Independent Work
Lunchtime
``` [A working example of identifying the current time in a timetable](../../working-examples/aria-current/#example3). ## Related Resources *No endorsement implied.* - [Accessible Rich Internet Applications (WAI-ARIA)](https://www.w3.org/TR/wai-aria/) - [Using the `aria-current` attribute](https://tink.uk/using-the-aria-current-attribute/) - [`Element.ariaCurrent`, MDN](https://developer.mozilla.org/en-US/docs/Web/API/Element/ariaCurrent) ## Tests ### Procedure For each component that contains a set of related elements where one element is visually highlighted to denote its current status: 1. Check that the highlighted item has an `aria-current` attribute with a suitable value. ### Expected Results - #1 is true. Back to Top