Skip to main content

deprecated-element

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

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

Note: Non-standard element detection has been moved to no-unsupported-features with the checkNonStandard option.

❌ Examples of incorrect code for this rule

<font color="red">lorem</font>

✅ Examples of correct code for this rule

<span class="red">lorem</span>

Interface

{
"deprecated-element": boolean
}

Default Severity

error