Introduction to <font>tag

The <font>tag in HTML was traditionally used to define the font face, size, and color of text within a webpage. However, it is important to note that the <font>tag is now obsolete in HTML5 and should be avoided in modern web development practices. Despite its deprecation, understanding the historical use of the <font>tag can be useful for maintaining or updating older websites.

Warning: The <font>tag is deprecated and no longer supported in modern web standards. It should be avoided in contemporary web development practices. To style text, use CSS properties such as <font-family>, <font-size>, and color to ensure better control, accessibility, and maintainability of your content.

Deprecated: This feature is no longer recommended for use but while some browsers might still support it but it may have already been removed from web standards or it could be in the process of being phased out, it might only be retained for compatibility with older web projects and it's advisable to avoid using this feature and update your existing code wherever possible, refer to the compatibility table below for guidance and keep in mind that the feature may stop functioning in the future.

HTML AttributesGlobal AttributesEvent Attributes
To view the full list
To view the full list
To view the full list
elementsChrome BrowsersMicrosoft Edge BrowserFirefox BrowsersSafari BrowserOpera Browser
<font>NoNoNoNoNo