Bypass blocks use incorrect HTML element or ARIA role
| Field | Value |
|---|---|
| Rule code | Manual_BypassBlocks_WrongRole |
| WCAG conformance level | A |
| WCAG success criterion | 4.1.2 Name, Role, Value |
| Must be fixed at source | No |
Description
The "Back to Top" or "Skip to Main Content" elements are incorrectly implemented as buttons. These elements should be links ("a" tags) because they focus the user to another section of the same page, which is more appropriately handled by links, not buttons.
How to fix
Ensure "Back to Top" or "Skip to Main Content" elements are implemented as <a> tags with appropriate href values, rather than buttons, for correct focus behavior.