HTML5

What are the HTML Tags Deprecated in HTML5?

HTML5 removed many presentational and outdated tags that mixed styling with structure. These deprecated (obsolete) tags may still render in some browsers but should never be used in new code. The modern approach separates content (HTML) from presentation (CSS).


Deprecated Tags and Their Modern Replacements

Deprecated TagWhat it didModern Replacement
<font>Set text font, size, and colorCSS: font-family, font-size, color
<center>Centered contentCSS: text-align: center or margin: auto
<big>Made text largerCSS: font-size
<strike>Struck-through text<del> or CSS text-decoration: line-through
<tt>Teletype / monospace textCSS: font-family: monospace, or <code>
<acronym>Marked an acronym<abbr>
<applet>Embedded Java applets<object> or <embed>
<frame>A single frame in a frameset<iframe> or CSS layout
<frameset>Container for framesCSS layout (Flexbox/Grid)
<noframes>Fallback for framesNot needed; use semantic layout
<marquee>Scrolling textCSS animations / transform
<blink>Blinking textCSS animations (used sparingly)
<dir>Directory list<ul> (unordered list)
<basefont>Default font for a documentCSS applied to <body>

Why Were These Removed?

  • They controlled presentation, which belongs in CSS, not HTML.
  • Frames created usability, accessibility, and bookmarking problems.
  • Tags like <marquee> and <blink> harmed accessibility and readability.
  • Separating structure from style makes pages easier to maintain and responsive.
⚠️

Even if a deprecated tag still displays in a browser, it is not guaranteed to work in the future. Always use CSS and semantic HTML5 elements instead.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships