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.
Developer notes
Name
- Typically doesn’t have a name
Role
- Identifies itself as a footer or contentinfo landmark
- If a non-semantic element must be used (like a
<div>
) userole="contentinfo"
.
Group
- Typically contains copyright information, navigation links, and privacy statements.
Focus
- Can be targeted with a skip link, but isn’t focusable with the tab key
- Use
tabindex="-1"
to make the footer targetable with a skip link.