Code examples
Use semantic HTML
This section uses an aria-label to name the region.
This section uses an aria-labelledby to name the region.
When you can’t use semantic HTML
This custom region requires extra attributes.
Given that I am on a screen with a region section landmark
When I use | I see/hear |
---|---|
Landmark shortcuts | It can be discovered, understood and skipped to |
Tab | Focus moves to controls inside the landmark (but the landmark itself does not receive focus) |
When I use | I hear |
---|---|
Landmark shortcuts | It can be discovered, understood and skipped to |
Swipe | Focus moves to controls inside the landmark (but the landmark itself does not receive focus) |
Reads | I hear |
---|---|
Role | It is discoverable as a region landmark |
Name | Its purpose is unique and clear |
This section uses an aria-label to name the region.
This section uses an aria-labelledby to name the region.
This custom region requires extra attributes.