Using the FONT tag we can change the text font, text size and text color. We can use this tag to only change one word, several words or lines, or the entire page.
Working with font we use the <FONT> and </FONT> tags to change the font attributes of the enclosed text. To
change the font of text we use the attribute FACE="..." inside of the
<FONT> tag. We can also change text color (COLOR="...") and
size (SIZE="...") by adding those attributes inside of the
<FONT> tag. We will begin by looking at how to change the font.
Changing Text Font
To change the text font we use the attribute FACE. The code looks like
this:
<FONT FACE="fontname">Text to be changed</FONT>
Here are several examples and their results:
- <FONT FACE="arial">Some text here</FONT>
- <FONT FACE="pixiefont">Some text here</FONT>
- <FONT FACE="riverside">Some text here</FONT>
- <FONT FACE="revere">Some text here</FONT>
- <FONT FACE="courier">Some text here</FONT>
- <FONT FACE="roman">Some text here</FONT>
- Some text here
- Some text here
- Some text here
- Some text here
- Some text here
- Some text here
Changing Text Color
We can also change the color of text using the <FONT> tag. To do
this we use the attribute COLOR="colorname" inside of the tag, where
colorname is the name or the code of the color. Refer to the color chart for a list of color codes. Here
are several examples and their results:
- <FONT COLOR="red">Add text here</FONT>
- <FONT COLOR="#000000">Add text here</FONT>
- <FONT COLOR="#FFCCFF">Add text here</FONT>
- <FONT COLOR="#FFFFFF">Add text here</FONT>
- <FONT COLOR="orange">Add text here</FONT>
- Add text here
- Add text here
- Add text here
- Add text here
- Add text here
Changing Text Size
To change the size of the text we use the attribute SIZE="num" inside of
the <FONT> tag where num is either +num or -num (+num will make the
text larger and -num will make the text smaller):
- <FONT SIZE="+1">Text to be changed</FONT>
- <FONT SIZE="+2">Text to be changed</FONT>
- <FONT SIZE="+3">Text to be changed</FONT>
- <FONT SIZE="-1">Text to be changed</FONT>
- <FONT SIZE="-2">Text to be changed</FONT>
- Text to be changed
- Text to be changed
- Text to be changed
- Text to be changed
- Text to be changed
Using FONT Attributes Together
These attributes can be used together in any combination:
- <FONT FACE="roman" SIZE="+1">Text</FONT>
- <FONT FACE="roman" COLOR="red">Text</FONT>
- <FONT FACE="roman" SIZE="+1"
COLOR="#000000">Text</FONT>
- <FONT SIZE="+1" COLOR="#FFFFFF">Text</FONT>
- Text
- Text
- Text
- Text
Use the FONT tag and its attributes anywhere within the body of your page to change the font!
Last Updated March 21, 2001
|