role="banner"
← Return to main list
This test case is designed to determine how role="banner"
is announced by various screen readers.
In this case, the element should be announced as a banner
landmark.
By default, the element being tested does not receive focus, so the only way to test how it is announced is via:
- VoiceOver: Announce next item: VO + Right Arrow
- NVDA and JAWS: Announce next line: DOWN ARROW
Example
Code
<div role="banner">
<h4>Test content</h4>
</div>
Assistive technologies
VoiceOver
- Chrome: Banner. [Stop] Test content. [Stop]. End of banner.
- Firefox: Banner. [Stop] Test content. [Stop]. End of banner.
- Safari: Banner. [Stop] Test content. [Stop]. End of banner.
NVDA
- Chrome: Banner landmark. Test content.
- Firefox: Banner landmark. Test content.
- Edge: Banner landmark. Test content.
JAWS
- Chrome: Test content. [Banner role not announced]
- Firefox: Test content. [Banner role not announced]
- Edge: Test content. [Banner role not announced]
← Return to main list