The <font> tag in HTML is used to specify the font, color, and size of text. The <font> tag is now considered deprecated, which means it is no longer recommended for use and may not be supported in future versions of HTML. Instead, it's better to use CSS to style text.
The <font> tag takes several attributes, including:
Here is the simple example program for printing the text within the font tag
<html> <head> <title>Font Tag</title> </head> <body> <h1>Font Tag</h1> <font face="roboto" size='5' color="red"> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p> </font> </body> </html>To download raw file Click Here
This code creates an HTML document with a title of "Font Tag" in the head. In the body of the document, there is a heading with the text "Font Tag" and a paragraph of text that is contained within a <font> tag.
The <font> tag has three attributes:
So, the paragraph text "Lorem ipsum dolor sit amet, consectetuer adipiscing elit." will be displayed in the Roboto font, with a size of 5 and in red color.
Learn All in Tamil © Designed & Developed By Tutor Joes | Privacy Policy | Terms & Conditions