Skip to main content

HTML Guide

The “aria-hidden” attribute must not be specified on the “link” element.

The aria-hidden attribute is not allowed on the link element according to HTML and ARIA specifications.

aria-hidden is a global ARIA attribute used to hide elements from assistive technologies such as screen readers. However, it is not permitted on some elements, including the link element, because link is a void element intended for non-visible resources like stylesheets and icons.

Incorrect usage:

<link rel="stylesheet" href="styles.css" aria-hidden="true">

Correct usage (simply remove aria-hidden):

<link rel="stylesheet" href="styles.css">

If your intent is to control screen reader visibility, apply aria-hidden to visible content elements like <div>, <span>, or <img>—not to metadata elements such as <link>.

Learn more:

Related W3C validator issues