KnowledgeBoat Logo

Computer Applications

What is the function of Definition List? Explain its structure with the help of an example.

HTML Intro

9 Likes

Answer

Definition lists are used to outline the multiple terms and their descriptions one after another, as in a glossary and other name or value lists. It starts and ends with <DL> and </DL> tag respectively. The <DL> tag is used in conjunction with <DT> (Definition Term) and <DD> (Definition Description) tags where:

  1. <DT> helps in defining the terms or names.
  2. <DD> helps in describing each term or name.

Consider the following example,

<DL>
<DT>DNA</DT>
<DD>DNA stands for Deoxyribonucleic acid. It is the hereditary material in humans and almost all other organisms.</DD>
<DT>RNA</DT>
<DD>RNA stands for Ribonucleic acid. It acts as a messenger between DNA and the protein synthesis complexes known as ribosomes.</DD>
</DL>

The given HTML code is displayed in the following way:

DNA
DNA stands for Deoxyribonucleic acid. It is the hereditary material in humans and almost all other organisms.
RNA
RNA stands for Ribonucleic acid. It acts as a messenger between DNA and the protein synthesis complexes known as ribosomes.

Answered By

5 Likes


Related Questions