Disallows usage of deprecated attributes
- Rule ID:
- no-deprecated-attr
- Category:
- Deprecated
- Standards:
- HTML5
HTML5 deprecated many old attributes.
Rule details
Examples of incorrect code for this rule:
<body bgcolor="red"></body>
Examples of correct code for this rule:
<body style="background: red;"></body>