About This HTML Issue
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>.
Last reviewed: May 05, 2025
Find issues like this automatically
Rocket Validator scans thousands of pages in seconds, detecting HTML issues across your entire site.