Code examples
Use semantic HTML
This semantic HTML contains all accessibility features by default.
Skip to example footerWhen you can’t use semantic HTML
This custom footer requires extra attributes.
Given that I am on a screen with a footer 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 contentinfo or footer landmark |
Name | It has no name, only a role because there should be only one |
This semantic HTML contains all accessibility features by default.
Skip to example footerThis custom footer requires extra attributes.