december.com
/
html
|
Tutor
·
Demo
·
Specs
·
Techs
·
Books
|
search
Version
W3C//DTD HTML 3.2 Final//EN
Element
FONT
Purpose
set font color and size of text
Description
This element encloses text whose appearance is modified by the size and color attributes.
Start tag
Required <FONT>
Attributes
Name
Type
Default
Comment
color
CDATA
#IMPLIED
code as
#RRGGBB in hexadecimal
or
16 named colors
size
CDATA
#IMPLIED
relative [+]nn (e.g., size=+1) or absolute (e.g., size=4)
Content
(
#PCDATA
|
TT
|
I
|
B
|
U
|
STRIKE
|
BIG
|
SMALL
|
SUB
|
SUP
|
EM
|
STRONG
|
DFN
|
CODE
|
SAMP
|
KBD
|
VAR
|
CITE
|
A
|
IMG
|
APPLET
|
FONT
|
BASEFONT
|
BR
|
SCRIPT
|
MAP
|
INPUT
|
SELECT
|
TEXTAREA
)*
End tag
Required </FONT>
Referenced in
A
ADDRESS
APPLET
B
BIG
BLOCKQUOTE
BODY
CAPTION
CENTER
CITE
CODE
DD
DFN
DIV
DT
EM
FONT
FORM
H1
H2
H3
H4
H5
H6
I
KBD
LI
P
PRE
SAMP
SMALL
STRIKE
STRONG
SUB
SUP
TD
TH
TT
U
VAR
Example
Source
Appearance
<FONT Size="1">one fish</FONT>
<FONT Size="2">two fish</FONT>
<FONT Color="red" Size="+3">red fish</FONT>
<FONT Color="blue" Size="+1">blue fish</FONT>
one fish
two fish
red fish
blue fish
Bookmark
·
Search
·
Market
2009-02-03 ·
John December
·
Contact
·
Terms of Use
©
December Communications, Inc.