**`<basefont>`** was an HTML 3.2-era element meant to set the default typography for everything after it on the page, without needing CSS. It was removed from the HTML5 spec, and modern browsers render it with no effect whatsoever — text keeps its normal default styling regardless of a `<basefont>` tag being present. Global typography today is set via CSS on the `body` selector (or a CSS custom property/design-token system), which is far more flexible, maintainable, and doesn't mix presentation into the document markup.
1Understanding <basefont>
`<basefont>` was an HTML 3.2-era element meant to set the default typography for everything after it on the page, without needing CSS. It was removed from the HTML5 spec, and modern browsers render it with no effect whatsoever — text keeps its normal default styling regardless of a <basefont> tag being present. Global typography today is set via CSS on the body selector (or a CSS custom property/design-token system), which is far more flexible, maintainable, and doesn't mix presentation into the document markup.
If you see <basefont> in genuinely old HTML, it can simply be deleted — it has no effect in any browser released in the last two decades.
<!-- Old, deprecated, and non-functional -->
<basefont face="Verdana" size="3">
<p>This text is unaffected by the basefont tag above.</p>2Practical Example
Here is a real-world application of <basefont> showing how it is used in production HTML.
<!-- Correct modern replacement -->
<style>
body { font-family: Verdana, sans-serif; font-size: 1rem; }
</style>3Best Practices
Follow these guidelines when working with <basefont>:
1. Never use <basefont> — it has no effect and is entirely removed from the spec
2. Set default typography via CSS on the body element or a global stylesheet
3. Delete any <basefont> tags found in legacy code — they're inert
Tip: If you see <basefont> in genuinely old HTML, it can simply be deleted — it has no effect in any browser released in the last two decades.
<!-- Old, deprecated, and non-functional -->
<basefont face="Verdana" size="3">
<p>This text is unaffected by the basefont tag above.</p>