EN, Change language
Englishالعربية
OM-082

Use semantic HTML anchor elements for links; most links do not need ARIA.

The requirement (from the design system site)

Use semantic HTML anchor elements for links; most links do not need ARIA.

Why it matters to users

A link built from a div or span is missing from a screen reader's links list, cannot be reached with Tab, and cannot be opened in a new tab. Keyboard and screen-reader users are cut off from the page it leads to.

How to fix it

Use a real a element with an href, or gup-link, for every link, replace div and span elements that navigate, and drop redundant role="link" from native links. Then scan again.

How we measure it

Flag elements with role=link that are not a[href], div/span with inline click handlers that navigate, and a[href] carrying a redundant role=link. # or javascript: anchors given a role or a toggle are shown for review, not counted. Handlers added from scripts are not visible to the scan.

The rule on the design system site

Related rules

Semantic anchor links · Oman OM-082 | xfix