Image

HTML & CSS - HTML LISTS - Description list

Description list

A definition list is the container element for DT and DD elements. The DL element should be used when you want to incorporate a definition of a term in your document.<DT>The term currently being defined in the definition list. This element contains inline data. <DD>The definition description element contains data that describes a definition term. This data may be either inline, or it may be block level.

EX
<!DOCTYPE html>
<html>
<body>

<h2>Description List</h2>

<dl>
  <dt>Core java</dt>
  <dd>object oriented language</dd>
  <dt>C</dt>
  <dd>Structure oriented language</dd>
</dl>

</body>
</html>
O/P

Description List

Core java
object oriented language
C
Structure oriented language