Skip to main content

no-deprecated-attr

Warns when there is an attribute defined as deprecated.

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

An attribute the HTML Living Standard marks as a non-conforming, obsolete feature is no-obsolete-attr's concern.

❌ 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

{
"no-deprecated-attr": boolean
}

Default Severity

warning