HTML and CSS Reference
In-Depth Information
You'll see other uses of lists in later lessons. With the introduction of CSS, lists became
one of the fundamental building blocks of web pages.
Summary
In this brief lesson, you got a look at HTML lists. Lists are a core structural element for
presenting content on web pages and can be used for everything from the list of steps in
a process to a table of contents to a structured navigation system for a website. They
come in three varieties: ordered lists, which are numbered; unordered lists, which by
default are presented bullets; 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
An ordered (numbered) list. Each of the items
in the list begins with <li> .
<ol>...</ol>
Specifies the numbering scheme to use in
the list. This attribute is deprecated in
HTML 4.01.
type
Specifies at which number to start the list.
This attribute is deprecated in HTML 4.01.
start
5
An unordered (bulleted or otherwise marked)
list. Each of the items in the list begins with
<li> .
<ul>...</ul>
Specifies the bulleting scheme to use in
the list. This attribute is deprecated in
HTML 4.01.
type
Individual list items in ordered, unordered,
menu, or directory lists. The closing tag
is optional in HTML, but is required in
XHTML 1.0.
<li>...</li>
Resets the numbering or bulleting scheme
from the current list element. Applies only to
<ul> and <ol> lists. This attribute is depre-
cated in HTML 4.01.
type
 
 
 
Search WWH ::




Custom Search