---
title: "Discussion on \"Accessible Tab Panels: aria-labelledby, aria-controls and tabindex=0\" | Hashnode"
description: "Discussion on \"Accessible Tab Panels: aria-labelledby, aria-controls and tabindex=0\". That panel just took a Tab stop. When does it need one, and where does it get its name?\nhttps://youtu.be/shC4nEYOmys\n\nThose were the questions at the end of the previous episode. Episode 10 made the s"
url: "https://hashnode.com/posts/tab-panel-name-and-focus/6af4266c4eebcc6df2e7a53b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Accessible Tab Panels: aria-labelledby, aria-controls and tabindex=0](https://a11yinpractice.hashnode.dev/tab-panel-name-and-focus?utm_source=hashnode&utm_medium=feed)

That panel just took a Tab stop. When does it need one, and where does it get its name? https://youtu.be/shC4nEYOmys Those were the questions at the end of the previous episode. Episode 10 made the s

6d ago · 9 min read · a11yinpractice.hashnode.dev  
Read the article

-   [#a11y](https://hashnode.com/tag/a11y)
-   [#accessibility](https://hashnode.com/tag/accessibility)
-   [#wcag](https://hashnode.com/tag/wcag)
-   [#aria](https://hashnode.com/tag/aria)
-   [#webdev](https://hashnode.com/tag/webdev)

## Written by

[A11Y in Practice](https://hashnode.com/@a11yinpractice)

@a11yinpractice

  
[View profile](https://hashnode.com/@a11yinpractice)

Building A11Y in Practice and WAS Lab: free accessibility labs & WAS exam-prep at wasexamprep.com. Not affiliated with IAAP or W3C.

## Responses 2

Markdown supported · ⌘↵ to post

[OneLifeVibe](https://hashnode.com/@onelifevibe)

[6d ago](https://hashnode.com/posts/tab-panel-name-and-focus/6af4266c4eebcc6df2e7a53b/comment/6af4328fef641118f79920da)

The two-directions framing is the clearest explanation of this I have seen — aria-controls points forward from the tab to the panel, and aria-labelledby points back so the panel takes its name from the tab's visible text. The broken-case examples land well too, especially the one where aria-controls is present but points at an ID that is not mounted anywhere: the attribute looks correct and the relationship still does not exist. I also appreciated the restraint in the reporting section — the APG as guidance rather than a WCAG requirement, and reporting the observed problem instead of counting missing attributes. The tabindex=0 decision table for text-only panels versus panels whose first content is focusable is something I will keep in mind the next time I build tabs.

[A11Y in Practice](https://hashnode.com/@a11yinpractice)

[6d ago](https://hashnode.com/posts/tab-panel-name-and-focus/6af4266c4eebcc6df2e7a53b/comment/6af4328fef641118f79920da#reply-6af473feb7b17b9a44e9df87)

Thanks, really glad the two-directions framing clicked. The unmounted-ID case is the one I see most in real audits, because the markup looks right in the source and only breaks at runtime, so checking the accessibility tree (or listening with VoiceOver) is the only reliable test. And yes, keeping APG as guidance rather than a WCAG requirement matters a lot when writing up findings. Thanks for reading!
