december.com
/
html
|
Tutor
·
Demo
·
Specs
·
Techs
·
Books
|
search
Version
-//W3C//DTD XHTML 1.0 Transitional//EN
Element
font
Purpose
set font face, 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
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
NMTOKEN
#IMPLIED
language code (backwards compatible); language code as
RFC3066
size
CDATA
#IMPLIED
[+|-]nn e.g. size="+1", size="4"
style
CDATA
#IMPLIED
associated style info; style sheet data
title
CDATA
#IMPLIED
advisory title; text used for titles
xml:lang
NMTOKEN
#IMPLIED
language code (as per XML 1.0 spec); language code as
RFC3066
Content
(
#PCDATA
|
a
|
br
|
span
|
bdo
|
object
|
applet
|
img
|
map
|
iframe
|
tt
|
i
|
b
|
u
|
s
|
strike
|
big
|
small
|
font
|
basefont
|
em
|
strong
|
dfn
|
code
|
q
|
samp
|
kbd
|
var
|
cite
|
abbr
|
acronym
|
sub
|
sup
|
input
|
select
|
textarea
|
label
|
button
|
ins
|
del
|
script
)*
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
iframe
ins
kbd
label
legend
li
noframes
noscript
object
p
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-07-15 ·
John December
·
Contact
·
Terms of Use
©
December Communications, Inc.