disallows usage of deprecated attributes (no-deprecated-attr)

HTML5 deprecated many old attributes.

Rule details

Examples of incorrect code for this rule:

<body bgcolor="red"></body>
error: Attribute "bgcolor" is deprecated on <body> element (no-deprecated-attr) at inline:1:7:
> 1 | <body bgcolor="red"></body>
    |       ^^^^^^^


1 error found.

Examples of correct code for this rule:

<body style="background: red;"></body>