HTML5 deprecated tags

It's good when you know the new HTML5 and use them, but there are also tags that are not supported anymore, you should avoid using them and remove them from your content when you do an update.

Tags not supported by HTML5 anymore:

<a name="something">, instead use <a href="#div_id"> in combination with </a> <div id="div_id">foo</div>.

for all of these tags:

  • <basefont>
  • <big>
  • <center>
  • <font>
  • <s>
  • <strike>
  • <u>

use css to style a div or span instead of these tags.

<marquee> too got replaced by css, you can set the overflow-style option to marquee.

<acronym> is deprecated too, i guess you may use <abbr> instead.

<applet> was already deprecated in HTML4 use <object instead>.

<bgsound> is no more in HTML5, too. Use the <audio> tag instead.

<dir> also isn't available since HTML4, if you want to display a directory listing use the <ul> <li> list tags.

<frame>, <noframes> and <frameset> are gone for good, but you may still use iframe or maybe in some situations you could load content via AJAX and inject it in your DOM.

<isindex> already deprecated since HTML4.

<tt> which stands for teletype text, it is used to render text using a monospaced font.