Skip to main content

deprecated-attr

Warns when there is an attribute defined as deprecated or obsolete.

This rule refer HTML Living Standard based MDN Web docs. It has settings in @markuplint/html-spec.

❌ Examples of incorrect code for this rule

<img src="path/to" alt="any picture" align="top" />

✅ Examples of correct code for this rule

<img src="path/to" alt="any picture" style="vertical-align: center" />

Interface

{
"deprecated-attr": boolean
}

Default Severity

error