no-obsolete-tags

This rule disallows using obsolete tags in HTML5.

Why?

The following element list is obsoleted in HTML5. It's not encouraged to use these tags.

applet, acronym, bgsound, dir, frame, frameset, noframes, isindex, keygen, listing, menuitem, nextid, noembed, plaintext, rb, rtc, strike, xmp, basefont, big, blink, center, font, marquee, multicol, nobr, spacer, tt

How to use

.eslintrc.js
module.exports = {
  rules: {
    "@html-eslint/no-obsolete-tags": "error",
  },
};

Rule Details

This rule disallow using obsolete tags.

Examples of incorrect code for this rule:

<applet></applet>
<dir></dir>

Further Reading

  1. html spec 16.2. Non-conforming features