Sams Teach Yourself HTML, CSS & JavaScript Web Publishing in One Hour a Day

(singke) #1
ptg16476052

86 LESSON 5: Organizing Information with Lists


by default are presented bullets; and definition lists, which are presented as a series of
terms and the definitions associated with them.
Not only are there CSS properties specifically associated with lists, but lists can also be
styled using properties that apply to any block-level element, like lists and list items.
The full list of HTML tags discussed in this lesson is shown in Table 5.2, and the CSS
properties are shown in Table 5.3.

TABLE 5.2 HTML Tags from Lesson 5
Tag Attribute Use
<ol>...</ol> An ordered (numbered) list. Each of the items in the list
begins with <li>.
type Specifies the numbering scheme to use in the list. Replaced
with CSS in HTML5.
start Specifies at which number to start the list.
<ul>...</ul> An unordered (bulleted or otherwise marked) list. Each of
the items in the list begins with <li>.
type Specifies the bulleting scheme to use in the list. Replaced
with CSS in HTML5.
<li>...</li> Individual list items in ordered, unordered, menu, or direc-
tory lists.
type Resets the numbering or bulleting scheme from the current
list element. Applies only to <ul> and <ol> lists. Replaced
with CSS in HTML5.
value Resets the numbering in the middle of an ordered (<ol>)
list.
<dl>...</dl> A glossary or definition list. Items in the list consist of pairs
of elements: a term and its definition.
<dt>...</dt> The term part of an item in a glossary list.
<dd>...</dd> The definition part of an item in a glossary list.
Free download pdf