Invalid @charset Web Standard

Description

Invalid @charset rule.

Help

@charset rules are more restrictive than other at-rules:

  • @charset must be at the very start of the CSS file, with nothing before it except an optional byte order mark
  • @charset must be followed by a single space and a double quote
  • Must end with a double quote and semi-colon
  • The @charset rule name must be all lower case
  • @charset cannot be used in HTML pages (only allowed in CSS files)

Applicable standards

Change history

  • 5.28 Dec 2017 Added.

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

Rule ID: W3cCssInvalidAtCharsetRule