martin2k

The BASEFONT Tag

HomeForumTutorials Tags:
 
 

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


Please fill in the below form if you have any comments or additional information you want to add about the above information.  If you have any questions, please visit the ForumAny questions sent using this form will be ignored.

* - Mandatory

*Name: E-mail:

*Comments:

*Please type the following code (your comment cannot be accepted without it):


© Martin Allen 1999 - 2006.  Last updated Thursday 09 November 2006 10:02:46 PM -0000.