Kumail.pk is a Free Platform of

Description List

Description lists are used to display different terms and their descriptions just like in a dictionary or glossary. It is dened by tag and each of its list items is composed of two elements: term and description. Term is dened by tag and its description is dened by tag. In description lists, a term can have one or more descriptions and a description can have one or more terms. The HTML <dl> element represents a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements). Common uses for this element are to implement a glossary or to display metadata (a list of key-value pairs).

Description List

HTML Description List or Definition List displays elements in definition form like in dictionary. The <dl>, <dt> and <dd> tags are used to define description list.

The 3 HTML description list tags are given below:

  1. <dl> tag defines the description list.
  2. <dt> tag defines data term.
  3. <dd> tag defines data definition (description).
 
  1. <dl>  
  2.   <dt>HTML</dt>  
  3.   <dd>is a markup language</dd>  
  4.   <dt>Java</dt>  
  5.   <dd>is a programming language and platform</dd>  
  6.  <dt>JavaScript</dt>  
  7.  <dd>is a scripting language</dd>  
  8.   <dt>SQL</dt>  
  9.   <dd>is a query language</dd>   
  10. </dl>  
  11.  

The HTML <dt> element specifies a term in a description or definition list, and as such must be used inside a <dl> element. It is usually followed by a <dd> element; however, multiple <dt> elements in a row indicate several terms that are all defined by the immediate next <dd> element.

The subsequent <dd> (Description Details) element provides the definition or other related text associated with the term specified using <dt>.

<p>Please use the following paint colors for the new house:</p>

<dl>
<dt>Denim (semigloss finish)</dt>
<dd>Ceiling</dd>

<dt>Denim (eggshell finish)</dt>
<dt>Evening Sky (eggshell finish)</dt>
<dd>Layered on the walls</dd>
</dl>

What is Description List?

Descriptive List is a fundamental finding aid for an archival collection. It should contain information which details the provenance of a collection and its system of arrangement. The list facilitates researchers in locating documents of specific interest to their research topic.

What is the Usage of Description List?

Usage of description lists ensures that terms and their descriptions are semantically related even as presentation format changes, as well as ensuring that these terms and descriptions are semantically grouped as a unit. Description lists are easiest to use when the descriptions are ordered alphabetically.

Description Lists

The HTML Beginner Tutorial looked at unordered lists and ordered lists, but, much like Peter Cushing’s Doctor Who, description lists are quite often forgotten. This is maybe because they are much more specific than ordered and unordered lists and therefore less useful, generally, but where there is a list of terms and descriptions (such as a glossary), a description list is your go-to-element.

dl gets the ball rolling, similar to the ul and ol elements, establishing the list. Rather than containing li elements, though, description lists have dt elements, which are the terms, followed by dd elements, which are the descriptions associated to the dt elements.

There doesn’t have to be one dt followed by one dd, there can be any number of either. For example, if there are a number of words that have the same meaning, there might be a number of dt’s followed by one dd. If you have one word that means various different things, there might be one dt followed by several dd’s.

 

 <h1>Some random glossary thing</h1> <dl> <dt>HTML</dt> <dd>Abbreviation for HyperText Markup Language – a language used to make web pages.</dd> <dt>Dog</dt> <dd>Any carnivorous animal belonging to the family Canidae.</dd> <dd>The domesticated sub-species of the family Canidae, Canis lupus familiaris.</dd> <dt>Moo juice</dt> <dt>Cat beer</dt> <dt>Milk</dt> <dd>A white liquid produced by cows and used for human consumption.</dd> </dl>

Apply for Free E-Certification

E-Certification