Skip to main content

HTML Guide

Bad value “highest” for attribute “fetchpriority” on element “link”.

The value highest is not valid for the fetchpriority attribute on a link element; valid values are auto, high, and low.

The fetchpriority attribute is used to inform the browser about the relative priority of resource fetching, such as stylesheets or preloads. According to the WHATWG HTML standard and the W3C validator, only the values auto, high, and low are permitted. Using an invalid value like highest will trigger a validation error.

Correct usage:

  • fetchpriority="high": Resource is prioritized for early fetching.
  • fetchpriority="low": Resource is fetched with lower priority.
  • fetchpriority="auto": Browser chooses the priority.

Incorrect example:

<link rel="preload" href="style.css" as="style" fetchpriority="highest">

Corrected example:

<link rel="preload" href="style.css" as="style" fetchpriority="high">

Minimal valid HTML example:

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Test</title>
  <link rel="preload" href="style.css" as="style" fetchpriority="high">
  <link rel="stylesheet" href="style.css">
</head>
<body>
  <p>Hello, world!</p>
</body>
</html>

Replace highest with high, low, or auto to resolve the validation error.

Learn more:

Related W3C validator issues