Read HTML The Definitive Guide Online
Authors: Chuck Musciano Bill Kennedy
9.3.3.1
Graphic
either as a specific font or as one
Graphic
of the generic fonts serif,
sans-serif, cursive,
fantasy, and monospace
fontsize
xx-small |
Define the font size
9.3.3.2
Graphic
x-small |
Graphic
small | medium
| large |
x-large |
xx-large |
larger |
smaller |
length
|
percent
fontstyle
normal |
Define the style of the face,
9.3.3.3
Graphic
italic |
either normal or some type of
Graphic
oblique
slanted style
font-variant
normal |
Define a font to be in small caps
9.3.3.4
Graphic
small-caps
font-weight
normal | bold |
Define the font weight. If a
9.3.3.5
Graphic
bolder |
number
is used, it must be a
Graphic
lighter |
multiple of 100 between 100 and
number
900; 400 is normal, 700 is the
same as the keyword bold.
height
length
| auto
Define the height of an element
9.3.6.9
Graphic
letter-spacing
length
| normal
Inserts additional space between
9.3.5.1
Graphic
text characters
line-height
length
|
number
|
Sets the distance between
9.3.5.2
Graphic
percent
| normal
adjacent text baselines
Graphic
list-style
Defines list-related styles using
9.3.7.4
Graphic
any of the values for
Graphic
list-style-image,
list-style-position, and
list-style-type
list-style-image
url
| none
Define an image to be used as a
9.3.7.1
Graphic
list item's marker, in lieu of the
value for list-style-type
list-style-position
inside |
Indents or extends (default) a list
9.3.7.2
outside
item's marker with respect to the
item's content
list-style-type
circle | disc |
Define a list item's marker for
9.3.7.3
Graphic
square |
either unordered lists (circle,
Graphic
decimal |
disc, or square) or for
lower-alpha |
ordered lists (decimal,
lower-roman |
lower-alpha,
none |
lower-roman, none,
upper-alpha |
upper-alpha, or
upper-roman
upper-roman)
margin
length
|
percent
|
Define all four of an element's
9.3.6.10
Graphic
auto
margins
margin-bottom
length
|
percent
|
Define the bottom margin of an
9.3.6.10
Graphic
auto
element; default value is 0
Graphic
margin-left
length
|
percent
|
Define the left margin of an
9.3.6.10
Graphic
auto
element; default value is 0
Graphic
margin-right
length
|
percent
|
Define the right margin of an
9.3.6.10
Graphic
auto
element; default value is 0
Graphic
margin-top
length
|
percent
|
Define the top margin of an
9.3.6.10
Graphic
auto
element; default value is 0
Graphic
padding
Define all four padding amounts
9.3.6.4
Graphic
around an element
padding-bottom
length
|
percent
Define the bottom padding of an
9.3.6.4
Graphic
element; default value is 0
Graphic
padding-left
length
|
percent
Define the left padding of an
9.3.6.4
Graphic
element; default value is 0
Graphic
padding-right
length
|
percent
Define the right padding of an
9.3.6.4
Graphic
element; default value is 0
Graphic
padding-top
length
|
percent
Define the top padding of an
9.3.6.4
Graphic
element; default value is 0
Graphic
text-align
center |
Set the text alignment style for
9.3.5.3
Graphic
justify | left
an element
Graphic
| right
text-decoration
blink |
Define any decoration for the
9.3.5.4
Graphic
line-through
text; values may be combined
Graphic
| none |
overline |
underline
text-indent
length
|
percent
Define the indentation of the first 9.3.5.5
Graphic
line of text in an element; default
Graphic
value is 0
text-transform
capitalize |
Transform the text in the element 9.3.5.6
Graphic
lowercase |
accordingly
Graphic
none |
uppercase
vertical-align
percent
|
baseline
| Set the vertical positioning of an 9.3.5.7
Graphic
bottom |
element
Graphic
middle | sub |
super |
textbottom |
texttop | top
word-spacing
length
| normal
Insert additional space between
9.3.5.8
words
whitespace
normal |
Define how whitespace within an 9.3.8.2
Graphic
nowrap | pre
element is handled
width
length
|
percent
|
Define the width of an element
9.3.6.12
Graphic
auto
Graphic
B.2 HTML Quick Reference
D. The HTML 4.0 DTD
Appendix D
D. The HTML 4.0 DTD
The HTML 4.0 standard is formally defined as three SGML Document Type Definitions (DTDs): the Strict DTD, the Transitional DTD, and the Frameset DTD. The Strict DTD defines only those elements that are not deprecated in the 4.0
standard. Ideally, everyone would create HTML documents that conform to the Strict DTD. The Transitional DTD includes all those deprecated elements and more accurately reflects the HTML in use today, with many older elements still in common use.
The Frameset DTD is identical to the Transitional DTD, with the exception that the document
is replaced by the