what is the dl tag in html
This Blog You Will Learn
what is the dl tag in html
✅<dl> tag stand for description list.
✅list used to create terms and their description.
✅<dl> tag defines a description list contains terms<dt> and their descriptions <dd>
✅ <dl> ➡ wraps the entire list.
✅<dt> ➡ defines the term (name, Question ,label)
✅<dd> ➡ defines description (answer,value, definition)
Syntax of HTML <dl> tag
<dl>
<dt>...</dt><dd>...</dd>
</dl>
Example
<!DOCTYPE html>
<html>
<body>
<h1> The HTML dl,dd,dt tag element </h1>
<p>three tag use </p>
<dl>
<dt>HTML</dt>
<dd>Structure of web content</dd>
<dt>PHP</dt>
<dd>create dynamic page</dd>
</dl>
</body>
</html>
what is the dl tag in html
Explain Program
Step 1]
<!DOCTYPE html>
- This declare the document type.
- browser that the document is written in html
Step 2 ]
<html>.... . </html>
- html is the root element of the html page.
- Every thing inside it is part of the webpage.
Step 3]
<body>.....</body>
- <body> tag contains all the visible content of the page.
- inside <body> show the browser screen.
Step 4]
<h1> The HTML dl,dd,dt tag element </h1>
- <h1> tag is heading tag, use the largest heading.
- display the main title of the page.
Step 5]
<p>three tag use </p>
- <p> tag paragraph tag.
- <p> tag displays a simple sentence three tag use
Step 6]
<dl>
- <dl> tag stands Definition list.
- use to create list
- <dl> tag container
Step 7]
<dt>HTML</dt>
- <dt> Definition list
- <dt> tag term defined
- <dt> tag name/ term
<dd>Structure of web content</dd>
- <dd> tag Definition description.
- <dd> tag explanation / description
Step 8]
Closing tag
</dl>
</body>
</html>
