Cover Image for HTML Description List
190 views

HTML Description List

HTML Description List (DL) is a type of HTML markup used to create a list of terms and their corresponding definitions. It is also referred to as a definition list. The DL element is defined using HTML tags <dl> and </dl>. Each term and its corresponding definition are enclosed by the <dt> and </dt> tags and the <dd> and </dd> tags, respectively.

For example, the following HTML code creates a description list with three terms and their corresponding definitions:

<dl>
  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>  
  <dt>Term 3</dt>
  <dd>Definition 3</dd>
</dl>

When this code is rendered in a web browser, it will display as:

Term 1 : Definition 1

Term 2 : Definition 2

Term 3 : Definition 3

The appearance of the terms and definitions can be customized using CSS (Cascading Style Sheets) to match the design of the website.

YOU MAY ALSO LIKE...

The Tech Thunder

The Tech Thunder

The Tech Thunder


COMMENTS