link integrity can only be used with rel=stylesheet, rel=preload or rel=modulepreload Web Standard

Description

A link element with an integrity attribute can only be used with rel=stylesheet, rel=preload or rel=modulepreload.

Help

The integrity attribute is used to verify external CSS files haven’t been tampered with.

Applicable standards

Change history

  • 5.34 Jul 2019 Now allows integrity on rel=preload and rel=modulepreload.
  • 5.25 Apr 2017 Added to W3 validator in March 2017.

This page describes a web site issue detected in HTML documents by SortSite Desktop and OnDemand Suite.

Rule ID: W3cHtml5LinkStylesheetIntegrity