HTM24


BACK

DESCRIPTION

OUTPUT

SOURCE CODE






DESCRIPTION:


     Definition lists define terms. A definition list consists of term/definition pairs. The <DL> tag creates definition lists. The tag must close to define the end of the list. It presents data formatted like a glossary or a dictionary. It is the ideal format to present lists of words or concepts and their meanings.


..Back to the top..



OUTPUT:

HTM24. A Web page with definition lists

Web page with two definition lists

This definition list uses DT/DD pairs.
Term 1
Here is the definition of the first item
Term 2
Here is the definition of the second item
Term 3
Here is the definition of the third item
This definition list uses DT, DT, DT followed by DD, DD, DD
Term 1
Term 2
Term 3
Here is the definition of the first item
Here is the definition of the second item
Here is the definition of the third item


..Back to the top..



SOURCE CODE:



<HTML>
<HEAD><TITLE>HTM24. A Web page with definition lists</TITLE></HEAD>
<BODY>
<H2><B><CENTER><FONT COLOR = blue>Web page with two definition lists</FONT></CENTER></B></H2>
This definition list uses DT/DD pairs.
<DL>
<DT>Term 1
<DD>Here is the definition of the first item
<DT>Term 2
<DD>Here is the definition of the second item
<DT>Term 3
<DD>Here is the definition of the third item
</DL>
<!-- List uses DT, DT, DT followed by DD, DD, DD-->This definition list uses DT, DT, DT followed by DD, DD, DD
<DL>
<DT>Term 1
<DT>Term 2
<DT>Term 3
<DD>Here is the definition of the first item
<DD>Here is the definition of the second item
<DD>Here is the definition of the third item
</DL>
</BODY>
</HTML>


..Back to the top..