deprecated
Angular templatesHTMLVue / SvelteVue / Sveltecorrectnessno fixdefault: warnhtml/html-validate-standardhtml/htmlhinthtml/html-eslint-recommended
What it does
Section titled “What it does”Reports an element that HTML5 no longer has (<center>, <font>, <marquee>, …).
Why it matters
Section titled “Why it matters”A removed element can be dropped by browsers at any time, and it mixes presentation into the markup. Assistive technology and search engines may treat it differently than the author expects.
To fix, replace it with CSS and a current element (<font> and <center> with a class).
Example
Section titled “Example”...<body>...<center>x</center>...<img src="a.png" alt="">...Configuration
Section titled “Configuration”angular: lint: rules: deprecated: warn # off, warn (default), errorhtml: lint: rules: deprecated: warn # off, warn (default), errorsvelte: lint: rules: deprecated: warn # off, warn (default), errorvue: lint: rules: deprecated: warn # off, warn (default), errorEnabled by the presets: html/html-validate-standard, html/htmlhint, html/html-eslint-recommended.
Suppress one line with sudsy-disable-next-line deprecated in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| html-eslint | no-obsolete-tags |
full |
| html-validate | deprecated |
full |
| htmlhint | tag-no-obsolete |
full |