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
<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
<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. View list type
© Policy Copyright www.htmlbook.ru
Comments
When commenting on, remember that the content and tone of your message can hurt the feelings of real people, show respect and tolerance to your interlocutors even if you do not share their opinion, your behavior in the conditions of freedom of expression and anonymity provided by the Internet, changes Not only virtual, but also the real world. All comments are hidden from the index, spam is controlled.