HTML Description List | HTML Definition 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).
<dl>     <dt>HTML</dt>     <dd>is a markup language</dd>     <dt>Java</dt>     <dd>is a programming language and platform</dd>    <dt>JavaScript</dt>    <dd>is a scripting language</dd>     <dt>SQL</dt>     <dd>is a query language</dd>    </dl>   

Output:HTMLis a markup languageJavais a programming language and platformJavaScriptis a scripting languageSQLis a query language


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *