HTML DL Tag || DL Tag in HTML
×

HTML DL <dl> Tag

0 451

The HTML DL <dl> tag represents a description list in an HTML document. The <dl> tag is used with <dt> and <dd>.

Program:

<!DOCTYPE html>
<html
<head>
  <meta charset="utf-8">
  <title>DL element</title>
</head>
<body>
<h1>The DL element</h1>
<dl>
  <dt>Term Heading 1</dt>
  <dd>Description of Term 1<dd>
  <dt>Term Heading 2</dt>
  <dd>Description of Term 2<dd>
</dl>
</body>
</html>


Share:


Leave a Reply


Comments
    Waiting for your comments