Computer Applications
What is the function of Definition List? Explain its structure with the help of an example.
HTML Intro
10 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:
<DT>
helps in defining the terms or names.<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
6 Likes
Related Questions
Differentiate between Ordered and Unordered list with the help of an example.
What do you mean by nesting of list?
Discuss the use of
<UL>
and<LI>
tags with suitable examples of each.Mihir wants to know the name of any two text editors that can be used to write the code for an HTML webpage. Can you provide him with the names?