HTML FONT ATTRIBUTES - HTML TUTORIAL 7 STUDENTSBLOG100 - Anna University Multiple Choice Questions

HTML FONT ATTRIBUTES - HTML TUTORIAL 7 STUDENTSBLOG100

Font tag is used to set font size, color and font family. Note.. this tag will not be supported in HTML 5

Syntax:
<font> ............. </font>

Font tag has many attributes. Here we will discuss some of the very important font attributes..
  • Face
  • Size
  • Color

Font Face:
Font face is used to set the font family. Font family in the sense,type of font. Some of the font types are.. Arial, Times New Roman, Jokerman, Algerian etc..

Syntax:
<font face="FontName"> ............. </font>

Font Size:
Font size is used to set the size of the font.Font size should be given in numeric form..

Syntax:
<font size="Font Size in Number"> ............. </font>

Font Color:
As the name denotes, font color attribute is used to set font color.
Syntax:
<font color="color name"> ............. </font>

Example:

Output:
Hello Visitor.. :)
Hello Visitor.. :)
Hello Visitor.. :)

Lesson 6  Previous | Main Page | Next  Lesson 8

No comments:

Post a Comment