HTML Deprecated Tags

Beginner
12 min read
Updated: Nov 2026
6 examples
Legacy → modern

Definition and Usage

Deprecated (obsolete) HTML tags are elements that older HTML versions allowed, but the living HTML standard tells authors not to use in new pages—mostly presentational tags like <center>, <font>, and <marquee>.

What should you use instead?

Put meaning in HTML (headings, links, lists, abbr, del) and put look and layout in CSS (text-align, color, font-size, animations). For frames, prefer <iframe> or a normal multi-page / SPA layout.

Why learn them in an HTML tutorial?

You will still see these tags in old tutorials, email exports, and legacy sites. Knowing the modern replacement helps you migrate safely and avoid copying outdated patterns. Individual tag pages (e.g. center, font) go deeper; this hub teaches the migration mindset.

Valid ≠ old-looking.

<s> and <u> are still valid HTML5 with defined meaning. Do not confuse them with obsolete <strike> or <font>.

Browsers may still render them.

That does not make them OK for new code. Validators fail, accessibility suffers, and future support is not promised.

Start with the big six.

Replace center, font, big/strike, marquee, frameset, and xmp/plaintext first—those appear most often in beginner material.

HTML Syntax — Legacy vs Modern

Same visual idea, modern markup:

HTML
<!-- Do not use in new HTML -->
<center>Welcome</center>
<font color="blue">Hello</font>
CSS
.hero { text-align: center; }
.accent { color: #2563eb; }
HTML
<p class="hero">Welcome</p>
<p class="accent">Hello</p>

Core HTML Concepts

How to think about obsolete tags while learning HTML:

IdeaMeaning for authors
Presentational tagsDescribed look (font, center) — use CSS instead
Structural leftoversOld page chrome (frameset, dir) — use modern layout / lists
Still valid look-alikess, u stay; strike does not
Non-conformingLiving standard: authors must not use these elements

Quick swap map (most common)

AvoidPrefer
<center>CSS text-align: center or flex/grid centering
<font>, <basefont>, <big>CSS color, font-family, font-size
<strike><del> (edits) or <s> (outdated)
<acronym><abbr>
<marquee>, <blink>CSS animation (respect prefers-reduced-motion)
<frameset>, <frame><iframe> or separate pages / CSS layout
<tt>, <xmp>, <plaintext><code>, <kbd>, <pre>

Why tags were removed

ReasonExample
CSS owns presentationfont, center, spacer
Better semanticsacronym → abbr
UX / securityframeset, applet
Never fully standardizedmarquee, blink

How to Migrate Deprecated HTML

A practical workflow for learners and maintainers:

  1. Find obsolete tags (validator, editor search, or the table below).
  2. Decide: is this look (CSS) or meaning (semantic tag)?
  3. Swap the tag for the modern equivalent; move colors/sizes into a stylesheet.
  4. Check keyboard, screen-reader, and reduced-motion behavior after animations.
  5. Re-validate the page and spot-check in a current browser.

Live Preview

Same centered line twice—legacy <center> vs CSS text-align: center. Prefer the modern side in new HTML.

Educational comparison only; do not ship <center> in new pages.

Legacy vs modern

Legacy

Centered with <center>

Modern

Centered with CSS text-align

HTML Examples

Six migrations: center, font, big/strike, marquee, frameset, and xmp/plaintext.

Example 1 — center vs CSS

HTML
<!-- Legacy -->
<center>Centered text</center>

<!-- Modern -->
<p style="text-align: center">Centered text</p>
Try It Yourself

How It Works

  1. center was a presentational block element.
  2. text-align: center centers inline content in a block.
  3. Flex/grid can center whole boxes when needed.
  4. Keep semantic tags (p, h1) for structure.

Example 2 — font vs CSS

HTML
<!-- Legacy -->
<font color="blue" face="Georgia, serif">Hello</font>

<!-- Modern -->
<p class="styled-text">Hello</p>
CSS
.styled-text {
  color: #2563eb;
  font-family: Georgia, serif;
}
Try It Yourself

How It Works

  1. font mixed color and face into markup.
  2. CSS keeps style reusable across pages.
  3. Emphasis still belongs in strong / em when meaning matters.
  4. basefont is obsolete for the same reason.

Example 3 — big / strike vs CSS + del

HTML
<!-- Legacy -->
<big>Larger</big> <strike>gone</strike>

<!-- Modern -->
<span class="larger">Larger</span> <del>gone</del>
Try It Yourself

How It Works

  1. big only meant “larger”—use font-size.
  2. strike was pure presentation.
  3. del marks removed content with meaning.
  4. s is valid for outdated (not deleted) text.

Example 4 — marquee vs CSS animation

HTML
<!-- Legacy -->
<marquee>Scrolling text</marquee>

<!-- Modern: CSS @keyframes (see Try It) -->
<div class="scroll-wrap">
  <span class="scroll-text">Scrolling text</span>
</div>
Try It Yourself

How It Works

  1. marquee was never a solid standard.
  2. CSS transforms give controllable motion.
  3. prefers-reduced-motion should pause or disable loops.
  4. Avoid autoplaying motion that distracts reading.

Example 5 — frameset vs iframe

HTML
<!-- Legacy (obsolete) -->
<frameset cols="50%,50%">
  <frame src="nav.html">
  <frame src="main.html">
</frameset>

<!-- Modern -->
<iframe src="panel.html" title="Panel"></iframe>
Try It Yourself

How It Works

  1. frameset replaced the document body with frames.
  2. iframe embeds one document inside a page.
  3. CSS layout is better for most multi-column UIs.
  4. Always give iframes a meaningful title.

Example 6 — xmp / plaintext vs pre / code

HTML
<!-- Legacy: xmp / plaintext (obsolete) -->

<!-- Modern -->
<pre>&lt;p&gt;Hello &amp; welcome&lt;/p&gt;</pre>
<p>Use <code>&lt;pre&gt;</code> for blocks.</p>
Try It Yourself

How It Works

  1. Escape < and & inside pre/code.
  2. pre keeps whitespace for code samples.
  3. code marks inline snippets.
  4. tt is also obsolete—prefer code / kbd / samp.

Deprecated Tags Replacement Table

Lookup: obsolete tag, original idea, and what to use in modern HTML tutorials. Linked names open the individual tag guide.

TagPurposeModern replacement
<acronym>Abbreviation or acronym<abbr>
<applet>Embed Java applet<object> or modern JS
<basefont>Default font for descendantsCSS font-family, font-size
<bgsound>Background audio<audio>
<big>Larger textCSS font-size
<blink>Flashing textCSS animation (use sparingly)
<center>Center contentCSS text-align: center
<dir>Directory list<ul>
<font>Font color / face / sizeCSS color, font-family
<frame>Single frame<iframe>
<frameset>Multi-frame layout<iframe> or CSS layout
<image>Non-standard image<img>
<isindex>Page search field<form> + input type="search"
<keygen>Key pair in formsWeb Crypto API
<listing>Preformatted text<pre>
<marquee>Scrolling textCSS animation or JS
<menuitem>Context menu itemButtons / ARIA menus
<multicol>Multi-column layoutCSS columns
<nextid>Auto IDsid attributes
<nobr>No line breaksCSS white-space: nowrap
<noembed>embed fallback<object> when needed
<noframes>frameset fallbackNormal page + <iframe>
<plaintext>Raw rest of document<pre>
<shadow>Old shadow insertNative Shadow DOM
<spacer>Empty spaceCSS margin / padding
<strike>Strikethrough<del> or <s>
<tt>Monospace / teletype<code>, <kbd>, <samp>
<xmp>Preformatted sample<pre> + <code>

Edge Cases & Pitfalls

Migration goes wrong when “it still works in the browser” becomes the only test.

copy

Copying old tutorials

Many 2000s snippets still use font and center. Rewrite them before you ship.

s

Deleting valid <s>

s is not obsolete. Replace strike, not every strikethrough tag.

email

HTML email quirks

Some mail clients still push presentational markup. Prefer documented email CSS patterns over web-only tags when possible.

a11y

Keeping marquee “for polish”

Auto-scrolling text hurts readability. Prefer static content or optional, reduced-motion-aware animation.

frames

Frameset bookmarks

Old multi-frame URLs do not map 1:1 to one document. Plan redirects when you retire framesets.

inline

Inline style only

Moving from font to style="color:…" everywhere still hurts maintainability. Prefer classes.

Browser Support

Many obsolete tags still paint for compatibility, but they are non-conforming HTML. Modern replacements (CSS, semantic elements, iframe) are Baseline and reliable across current browsers.

✓ Do not use in new HTML

Obsolete tags

Browsers may still render legacy markup; authors should migrate to CSS and semantic HTML.

N/A for new projects
Google Chrome All versions · Desktop & Mobile
Full support
Mozilla Firefox All versions · Desktop & Mobile
Full support
Apple Safari All versions · macOS & iOS
Full support
Microsoft Edge All versions · Chromium & Legacy
Full support
Internet Explorer IE 6+ · Legacy environments
Full support
Opera All modern versions
Full support
Deprecated tags Avoid

Bottom line: Learn the replacements, migrate legacy pages, and write new HTML with semantic tags plus CSS.

Key Takeaways

  • Do not use obsolete tags like center, font, or marquee in new HTML.
  • CSS handles look; semantic tags handle meaning.
  • Still rendering ≠ recommended. Migrate when you touch legacy pages.
  • Continue: HTML Tags and modern elements like <a>.

One line: Skip obsolete presentational tags—write semantic HTML and style with CSS.

Frequently Asked Questions

They are elements that were once valid but are now obsolete or non-conforming in the HTML living standard. New pages should use semantic HTML and CSS instead of tags like center, font, and marquee.
Many still render for backward compatibility, but validators flag them, behavior can differ, and support is not guaranteed forever. Treat that as a migration grace period—not a green light for new code.
In everyday tutorials, both mean “do not use in new HTML.” The living standard lists many as non-conforming/obsolete. Some older docs said “deprecated” for the same tags.
No. s is valid HTML5 for content that is no longer accurate. strike is the obsolete presentational tag. Prefer del for edits and s for outdated information.
CSS: color, font-family, and font-size on a class or element. Keep meaning in HTML (strong, em) and look in CSS.
Yes when you maintain or redesign pages. Swap presentational tags for CSS and structural ones for modern elements so the site stays accessible and valid.

Practice a migration

Open a Try It demo and rewrite legacy markup with CSS and semantic tags.

Open Try It editor →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful