Skip to main content
Version: v6

Bypass blocks use incorrect HTML element or ARIA role

Bypass blocks use incorrect HTML element or ARIA role — rule summary
FieldValue
Rule codeManual_BypassBlocks_WrongRole
WCAG conformance levelA
WCAG success criterion4.1.2 Name, Role, Value
Must be fixed at sourceNo

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.