Deprecated HTML Tags: What They Are and How to Replace Them
Deprecated HTML tags such as font, center and marquee still render, but they belong in CSS. Here is how to spot them and swap them out.
Free to use 9 min read Updated Oct 2026
How to Fix
The short version, the same steps you see when you click How to Fix in your report.
Why this fails: the report found at least one font, center or marquee tag in your rendered page, including any added by scripts before the page finishes loading, or sitting inside noscript. These tags are obsolete in the HTML standard, even though browsers still draw them, because CSS does the same job.
How to fix it:
- Find each tag named in the report by viewing the page source (Ctrl+U, or Cmd+Option+U on a Mac) or searching your theme files and saved content.
- Replace every font tag with a span that has a class, and move the color and size into your stylesheet.
- Remove each center tag and put text-align: center on its parent element, or on a div with a class that wraps the same content. For a fixed-width block, use margin: 0 auto instead.
- Replace every marquee with a div and span driven by a CSS keyframes animation, and switch it off for visitors who prefer reduced motion.
- Save the change, clear your caches and publish.
<!-- before -->
<font color="red" size="4">Sale ends Friday</font>
<center>Welcome</center>
<marquee>Free shipping this week</marquee>
<!-- after -->
<span class="sale-note">Sale ends Friday</span>
<div class="text-center">Welcome</div>
<div class="ticker"><span>Free shipping this week</span></div>.sale-note { color: #c0392b; font-size: 1.125rem; }
.text-center { text-align: center; }
.ticker { overflow: hidden; white-space: nowrap; }
.ticker span { display: inline-block; padding-left: 100%; animation: ticker 15s linear infinite; }
@keyframes ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker span { animation: none; padding-left: 0; } }Where to look on common platforms:
- WordPress: theme template files, plugin templates and old classic editor posts.
- Shopify: the theme code editor and product descriptions.
- Wix and Squarespace: custom code and embed blocks.
- Plain HTML: a find in files across the whole site.
Re-test: open the page, press F12 and run this in the console. It must return 0.
document.querySelectorAll('font, center, marquee').lengthAlso search the page source, because that query skips tags inside noscript and template blocks, which our report still counts. Then run the free SEO check again to confirm the row turns green.
Frequently Asked Questions
What is a deprecated HTML tag?
What are the most common deprecated tags in HTML?
Which deprecated HTML tag makes text blink or scroll?
Do deprecated HTML tags hurt SEO?
Can I still use deprecated HTML tags on my website?
How do I know if an HTML tag is deprecated?
What is the difference between deprecated and obsolete HTML?
See how your site scores right now
Paste your address into the free report, then use the How to Fix button on anything that needs work.
Free to use. Results in under a minute for most sites.