Tuesday, April 14, 2015

HTML: Deprecated HTML5 Tags

A deprecated tag is a tag that is no longer in standard HTML use. Although deprecated tags may still be recognized by certain browsers, newer browsers will probably not accept such tags and will display them incorrectly, so it's better to avoid using them if you can.

These tags are deprecated in HTML5 only, as far as I know. You may want to do your own research if you are looking for XHTML or HTML4 tags.

All of these tags' functions are better handled with CSS:
  • <acronym>
  • <applet>
  • <b> (Replaced by <strong>)
  • <basefont>
  • <big>
  • <center>
  • <dir>
  • <font>
  • <frame>
  • <frameset>
  • <i> (Replaced by <em>)
  • <isindex>
  • <noframes>
  • <tt>
As stated earlier, some of these tags, such as <b> or <i>, will still be recognized in modern browsers. Others, like <frameset> <noframes> and <frame> are totally deprecated and, as far as I know, do not work in any modern browsers.

Regardless of the state of the tag, totally deprecated or still being phased out, it's best to avoid using inferior tags and use their modern counterparts instead, which are often CSS attributes.

No comments: