doctype-style
What it does
Section titled “What it does”Reports a doctype keyword that is not in uppercase (<!doctype html>).
Why it matters
Section titled “Why it matters”The keyword is case-insensitive, so the browser does not care; uppercase is the form the specification and most documents use, and one form keeps the files alike.
To fix, write <!DOCTYPE html>.
Example
Section titled “Example”<!doctype html><title>x</title>Configuration
Section titled “Configuration”angular: lint: rules: doctype-style: warn # off (default), warn, errorhtml: lint: rules: doctype-style: warn # off (default), warn, errorsvelte: lint: rules: doctype-style: warn # off (default), warn, errorvue: lint: rules: doctype-style: warn # off (default), warn, errorEnabled by the presets: html/html-validate-recommended.
Suppress one line with sudsy-disable-next-line doctype-style in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools. full: Sudsy reports what the upstream rule reports; partial: only part of it, as the last column says.
| Tool | Rule | Match | What differs |
|---|---|---|---|
| html-validate | doctype-style |
partial | uppercase only, without the style option |