HTML font Tag

HTML font Tag was used to define the font size, font color and font face of the text. HTML font tag was used in HTML4 and it is deprecated in HTML5.

Syntax of HTML font Tag

The Syntax of HTML font Tag is shown below, It has both starting and ending tags.

<font>
// font tag text here
</font>

Usage of HTML font Tag

HTML font Tag was used to set the font size, font color and font face of the text. But font tag is deprecated now and CSS is used instead.

HTML font tag has three main attributes color, size and face. Color is used to define the font color, size attribute defines the size, while the face attribute defines the font face of text.

HTML font Tag is not used anymore, one should use CSS instead.

Example of HTML font Tag

Simple example of HTML font Tag is shown below.

<font color="red" face="sans-serif" size="+10">This is simple text.</font>

Browser Support for HTML font Tag

HTML font Tag is supported by all major browsers including Safari and Internet Explorer.

Global Attributes Support in HTML font Tag

The HTML font Tag supports all Global Attributes.

Event Attributes Support in HTML font Tag

The HTML font Tag supports all Event Attributes.

HTML anchor Tag HTML abbr Tag HTML acronym Tag HTML address Tag HTML applet Tag HTML area Tag HTML article Tag HTML aside Tag HTML audio Tag HTML b Tag HTML base Tag HTML basefont Tag HTML bdi Tag HTML bdo Tag HTML big Tag HTML blockquote Tag HTML body Tag HTML br Tag HTML Button Tag HTML Canvas Tag HTML Caption Tag HTML Center Tag HTML Cite Tag HTML Code Tag HTML Col Tag HTML colgroup Tag HTML comment Tag HTML data Tag HTML datalist Tag HTML dd Tag HTML del Tag HTML details Tag HTML dfn Tag HTML dialog Tag HTML dir Tag HTML div Tag HTML dl Tag HTML Doctype Tag HTML dt Tag HTML em Tag HTML embed Tag HTML fieldset Tag HTML figcaption Tag HTML figure Tag HTML font Tag HTML footer Tag HTML form Tag HTML frame Tag HTML frameset Tag HTML Heading Tags HTML head Tag HTML header Tag HTML hr Tag HTML html Tag HTML i Tag HTML iframe Tag HTML img Tag HTML input Tag HTML ins Tag HTML kbd Tag HTML label Tag HTML legend Tag HTML li Tag HTML link Tag HTML main Tag HTML map Tag HTML mark Tag HTML meta Tag HTML meter Tag HTML nav Tag HTML noframes Tag HTML noscript Tag HTML object Tag HTML ol Tag HTML optgroup Tag HTML option Tag HTML output Tag HTML p Tag