HTML and CSS Reference
In-Depth Information
TABLE 5.2
Continued
Tag
Attribute
Use
Resets the numbering in the middle of an
ordered ( <ol> ) list. This attribute is depre-
cated in HTML 4.01.
value
A glossary or definition list. Items in the list
consist of pairs of elements: a term and its
definition.
<dl>...</dl>
The term part of an item in a glossary list.
Closing tag is optional in HTML but required
in XHTML 1.0.
<dt>...</dt>
The definition part of an item in a glossary
list. Closing tag is optional in HTML but
required in XHTML 1.0.
<dd>...</dd>
TABLE 5.3
CSS Properties from Lesson 5
Property
Use/Values
Used to specify the bullet style or numbering style for the
list. Valid values are disc , circle , square , decimal ,
lower-roman , upper-roman , lower-alpha , upper-alpha ,
and none .
list-style-type
The image to use in place of the bullets for a list. The value
should be the URL of the image.
list-style-image
Defines the alignment of lines of text in list items after the
first. Values are inside and outside .
list-style-position
Enables you to set multiple list properties at once: list style
type, list style position, and the URL of the bullet style.
list-style
Workshop
You've learned how to create and customize lists in HTML. In this section, you see the
answers to some common questions about lists, and some exercises that should help you
remember the things you've learned.
Q&A
Q My glossaries came out formatted really strangely! The terms are indented
farther in than the definitions!
A Did you mix up the <dd> and <dt> tags? The <dt> tag is always used first (the def-
inition term), and the <dd> follows (the definition). I mix them up all the time.
There are too many d tags in glossary lists.
 
 
 
 
Search WWH ::




Custom Search