List of definitions

<

A list of definitions is a text consisting of two interrelated sets - a list with terms and a list of definitions of terms. First, the first term is indicated, below it is the definition, then the next term with the definition, etc.

The structure of the definition list is as follows.

The term 1
Definition of term 1
The term 2
Definition of term 2

The list itself is defined by the container <DL>, the term - the tag <DT>, and its definition - using the tag <DD>. Attaching tags to create a list of definitions is demonstrated in Example 1.

Example 1. General structure of the list of definitions

Valid HTML
<! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 // EN" "http://www.w3.org/TR/html4/strict.dtd">
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text / html; charset = windows-1251">
<Title> Definition list </ title>
</ Head>
<Body>

<Dl>
<Dt> Term 1 </ dt>
<Dd> Definition of the term 1 </ dd>
<Dt> Term 2 </ dt>
<Dd> Definition of the term 2 </ dd>
</ Dl>

</ Body>
</ Html>

The use of the definition list is shown in Example 2.

Example 2. Creating a list of definitions

Valid HTML
<! DOCTYPE HTML PUBLIC "- // W3C // DTD HTML 4.01 // EN" "http://www.w3.org/TR/html4/strict.dtd">
<Html>
The <head>
<Meta http-equiv = "Content-Type" content = "text / html; charset = windows-1251">
<Title> Definition list </ title>
</ Head>
<Body>

<Dl>
<Dt> Leo </ dt>
<Dd> A predatory animal from the cat family. Characterized by a long tail with a tassel at the end and mane. Occurs in Africa. </ Dd>
<Dt> Cage </ dt>
<Dd> A tool for catching a lion. It is a large box, the side walls of which are made of steel rods. </ Dd>
</ Dl>

</ Body>
</ Html>

The result of this example is shown below.

Fig. 1. List of definitions

Fig. 1. View list type

© Policy Copyright www.htmlbook.ru