HTML Tutorial EX4C
Lists, Definition
HTML supports three kinds of lists:
- Unnumbered Lists
- Numbered Lists
- Definition Lists
Additionally, these lists can be nested, with one kind of
list inside another and so on.
In this example, definition lists are presented.
A definition list consists of alternating a term
(abbreviated as DT) and a definition (abbreviated
as DD). Web browsers generally format the
definition on a new line.
To make a definition list:
- Start with an opening list <DL> tag.
- Enter the <DT> tag followed by the term
to be defined.
- Enter the <DD> tag followed by the definition
of the term. This definition may contain a simple
entry, multiple lines and paragraphs, and other
lists (nested lists are discussed later in this
tutorial).
Like the <P> tag, the <DT> and
<DD> tags do not
require a closing tag (</DT> or </DD>).
- End the definition list with a closing list tag
(</DL>).
This is a definition list:
- First term
- First term's definition
- Second term
- Second term's definition. I am purposely
making this definition longer in order to
illustrate what it would look like as a
more complete paragraph.
- Third term
- Third term's definition