html font



HTML FONT <font>


Attribute
Value
Description
color
rgb  (x, x, x)
#xxxxxx
colorname
Specifies the color of text
face
font_family
Specifies the font of text
size
number
Specifies the size  of text


FONT COLOR

Syntax :
    <font color="color_name|hex_number|rgb_number">


Example :
    <font color="red">This is some text!</font>


FONT COLOR ATTRIBUTE VALUES

Value
Description
color_name
Specifies the text color with a color name (like "red")
hex_number
Specifies the text color with a hex code (like "#ff0000")
rgb_number
Specifies the text color with an rgb code (like "rgb(255,0,0)")

HTML <font> face Attribute
Syntax :
     <font face="font_family">

Example:
 <font face="verdana">This is some text!</font>

HTML <font> faceAttribute Values

Value
 Description
font_family
The font of the text. To specify a prioritized list of several fonts, separate the names with a comma (like this <font face="verdana,arial,sans-serif">

HTML <font> SIZE ATTRIBUTE
Syntax :
         <font size="number">

Example :
         <font size="6">This is some text!</font>

Attribute Values
Value
 Description
number
 A number from 1 to 7 that defines the size of the text. Browser default is 3.

BACKGROUND COLOUR
Syntax :
 <.... bgcolor=colour name> text </...>
 <.... bgcolor=hex colour>text</...>

Example :
<body bgcolor=red>text</body>
     <body bgcolor=#334455>text</body>