Skip to content

deprecated

Reports an element that HTML5 no longer has (<center>, <font>, <marquee>, …).

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).

Reported
...
<body>
...
<center>x</center>
...
<img src="a.png" alt="">
...
angular:
lint:
rules:
deprecated: warn # off, warn (default), error
html:
lint:
rules:
deprecated: warn # off, warn (default), error
svelte:
lint:
rules:
deprecated: warn # off, warn (default), error
vue:
lint:
rules:
deprecated: warn # off, warn (default), error

Enabled 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.

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