Name
Base Font
Description
Defines the font of text contained within the tag. This is an old HTML
3.0 tag - the FONT tag or a style
sheet
should be used instead.
This tag is not supported in Firefox.
Attributes
COLOR
Specifies the colour. Colours can be defined in this format: #RRGGBB
where the values are in hexadecimal format. E.g. #FF0000 is red.
Colours can also be defined with words e.g. red.
FACE
Specifies the font. You can use commas to separate multiple fonts - the
browser will use the first one that is available on the system.
SIZE
Specifies the font size - from 1 (smallest) to 7 (largest). The
following table gives the equivalent sizes in pts:
| SIZE Value |
Font size in pts |
| 1 |
8 |
| 2 |
10 |
| 3 |
12 |
| 4 |
14 |
| 5 |
18 |
| 6 |
24 |
| 7 |
36 |
Example
Code
<basefont face="Tahoma,Verdana,Arial" size="7" color="gray">Sample Text</basefont>
Generates
Sample Text
© Martin Allen 1999 - 2006. Last updated Thursday 09 November 2006 10:02:46 PM -0000.
|