<font> Tag in HTML

The <font> tag in HTML was used to define the font, size, and color of text. However, it is considered obsolete in HTML5. Styling should now be done using CSS instead of the <font> tag.

Key Points on <font> Tag:

Syntax of <font> Tag:

Syntax Example

<font color="color" size="size" face="font-family">Text</font>

Example of <font> Tag in HTML:

This example demonstrates the use of the <font> tag to change text color, font, and size.

Code Example

<font color="red" size="5" face="Arial">Welcome To Shorat Programming.</font>

Output

Welcome To Shorat Programming.

Attributes of <font> Tag:

Although the <font> tag is deprecated, it may still be found in older web content. Modern web standards prefer using CSS for styling, offering greater flexibility and separation of structure and design.