december.com
/
html
|
Tutor
·
Demo
·
Specs
·
Techs
·
Books
|
search
Version
-//W3C//DTD HTML 4.01 Transitional//EN
Element
FONT
Purpose
set font face, color, and size of text
Description
This element encloses text whose appearance is modified by the face, size, and color attributes. Note that the font face has to be installed on the user's computer in order for it to be displayed in that face.
Start tag
Required <FONT>
Attributes
Name
Type
Default
Comment
class
CDATA
#IMPLIED
space-separated list of classes
color
CDATA
#IMPLIED
color code as
#RRGGBB in hexadecimal
or
16 named colors
; text color
dir
( ltr | rtl )
#IMPLIED
direction for weak/neutral text
face
CDATA
#IMPLIED
comma-separated list of font names
id
ID
#IMPLIED
document-wide unique id
lang
NAME
#IMPLIED
language code as
RFC1766
size
CDATA
#IMPLIED
[+|-]nn e.g. size="+1", size="4"
style
CDATA
#IMPLIED
style sheet data; associated style info
title
CDATA
#IMPLIED
text; advisory title
Content
(
#PCDATA
|
TT
|
I
|
B
|
U
|
S
|
STRIKE
|
BIG
|
SMALL
|
EM
|
STRONG
|
DFN
|
CODE
|
SAMP
|
KBD
|
VAR
|
CITE
|
ABBR
|
ACRONYM
|
A
|
IMG
|
APPLET
|
OBJECT
|
FONT
|
BASEFONT
|
BR
|
SCRIPT
|
MAP
|
Q
|
SUB
|
SUP
|
SPAN
|
BDO
|
INPUT
|
SELECT
|
TEXTAREA
|
LABEL
|
BUTTON
)*
End tag
Required </FONT>
Referenced in
A
ABBR
ACRONYM
ADDRESS
APPLET
B
BDO
BIG
BLOCKQUOTE
BODY
BUTTON
CAPTION
CENTER
CITE
CODE
DD
DEL
DFN
DIV
DT
EM
FIELDSET
FONT
FORM
H1
H2
H3
H4
H5
H6
I
INS
KBD
LABEL
LEGEND
LI
NOSCRIPT
OBJECT
P
PRE
Q
S
SAMP
SMALL
SPAN
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>
<FONT Color="green" Size="+5" Face="Courier">The Sea</FONT>
<FONT Color="purple" Size="+5" Face="Muddy">Monster</FONT>
one fish
two fish
red fish
blue fish
The Sea
Monster
Bookmark
·
Search
·
Market
2008-06-17 ·
John December
·
Contact
·
Terms of Use
©
December Communications, Inc.