Deprecated in HTML5. Do not use.

<font> HTML Tag

Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
Element of
Learn How Fonts And Web Typography Work In HTML: A Beginner's Guide
What does <font> HTML Tag do?
The <font> element was used to specify typographical display styles. It has been deprecated and fonts should be styled with CSS instead.
Display
inline

How to style fonts

The <font> element, along with most other style and design oriented HTML features, has been deprecated in HTML5. The correct way to control fonts and other styling is through CSS. For more information, see our tutorial on web typography.

Adam is a technical writer who specializes in developer documentation and tutorials.