Skip to main content

doctype-first

Doctype must be first.

Level: error

Config value‚Äč

  1. true: enable rule
  2. false: disable rule

The following pattern are not considered violations:

<!DOCTYPE html>
<html></html>
<!DOCTYPE html>
<html></html>

The following pattern is considered violation:

<!--comment--><!DOCTYPE html>
<html></html>