top of page
HTML5.png

HTML

FONT TAG

  • The font tag is used to change the color, size and face of the text in an HTML document.

  • Font tag has following attributes:-

  1. Face

  2. Color

  3. Size

 

Face:​

  • This attribute allows the user to change the face of the text in an HTML document.

  • Example:- Arial Black, Broadway, Verdana, etc.

 

Color:​

  • This attribute allows the user to change the color of the text present in HTML document.

  • Example:- blue, green, pink, red, etc.

 

Size:

  • This attribute allows the user to change the size of the text in HTML document.

  • syntax:-

<FONT face=”font_list” color=”color” size=”font_size”>

.

.

.

</FONT>

  • Example:-                          

<html>

<head>

<title>FONT TAG</title>

</head>

<body>

<font face=”Arial Black” color=”red” size=”4” >

Font Tag Example

</font>

</body>

</html>

​

OUTPUT:

​

font tag.JPG

Related Topics

bottom of page