|
Font Tags:
One way to control the size, typeface, and color of text in a web page is to use the <FONT> tag. As you can see from the specific tags, the FONT tag takes attributes that define the size, type, and color of the text. The FONT tag is a container tag (consists of a beginning and ending tag).
NOTE: While the <FONT> offers an easy way to alter text attributes, it does have some disadvantages. HTML "purists" (i.e., designers who follow good HTML practice) prefer to use Cascading Style Sheets (CSS).
Font Size
- <FONT SIZE=number> . . . </FONT>
- Example: <FONT SIZE="-2">smaller text</FONT>
Example: <FONT SIZE="2">bigger text</FONT>
Font Type
- <FONT FACE=fontname> . . . </FONT>
- Example: <FONT FACE="Helvetica">my website</FONT>
Font Color
- <FONT COLOR=color> . . . </FONT>
- Example: <FONT COLOR="red">happy valentine's day</FONT>
The value of the COLOR attribute can be one of 140 preset color names, or it can be the numeric value for any color you choose.
Combining Styles
Example: <FONT SIZE="5" FACE="Times" COLOR="green">And it looks like this!</FONT>
And it looks like this!
|