www.pickatutorial.com Computer Tutorials
Top eBooks: C/C++ | C# | Android | Mathematics | Database | Cloud | Graphics | Networking | Oracle | Hardware | AI
Top Tutorials: C/C++ | C#.NET | PHP MySQL | Java | Java Script | jQuery | HTML | xHTML | HTML5 | VB Script| CSS
Lessons The Font Tag Bookmark and Share
Tutorial Home
Lesson 1
Lesson 2
Lesson 3
Lesson 4
Lesson 5
Lesson 6
Lesson 7
Lesson 8
Lesson 9
Lesson 10
Lesson 11
Lesson 12
Lesson 13
Lesson 14
Lesson 15
Lesson 16
Lesson 17
Lesson 18
Lesson 19
Lesson 20
Lesson 21
Lesson 22
Lesson 23
Lesson 24
Lesson 25
Lesson 26
Lesson 27
Lesson 28
Lesson 29
Lesson 30
Lesson 31
Lesson 32
Lesson 33
Lesson 34
Lesson 35
Lesson 36
The <font> tag in HTML is used to control the font face, color and size of text. Its end tag is </font>.

Changing the size:

The size of text can be controlled with the size attribute of the font tag. It takes the value from 1 to 7. 1 being the smallest size and 7 being the largest.

<font size="1">Font Size 1</font> <br>
<font size="7">Font Size 7</font>

Font Size 1
Font Size 7


Changing the color:

The color attribute can be used to change the color of the text. It can take the color name in RGB Hexa or it can take one of the color names available here.

<font color="pink">
This is pink text.
</font>

<font color="#FF0000">
This is Red text.
</font>

This is pink text.
This is Red text.

Changing the font face:

<font face="Arial">This text is in Arial Font</font> <br>
<font face="Courier">This text is in Courier Font</font>

This text is in Arial Font
This text is in Courier Font

Next >>> Lesson No. 6: Basefont Tag







Home - Advertise - Contact - Disclaimer - About Us
© Since 2006 pickatutorial.com -- All Rights Reserved.