HTML<dl> tag
HTML <dl> tag : Definition
The HTML <dl> tag stands for description list, the <dl> is used with the <dd> and <dtgt; tags.
• The <dl> tag creates a list, the <dt7gt; tag represents the term, and the <dd> tag represents the description of the term.
The <dl> tag in html
The HTML <dd> tag is used for specifying a definition description in a definition list. Paragraphs, line breaks, images, links, lists can be inserted inside a <dd> tag. The <dd> tag in HTML is used along with <dl> tag which defines the description list and <dt> tag which defines the terms in the description list.
<dl> tag example :
<!DOCTYPE html> <html> <body> <h1>The dl, dd, and dt elements</h1> <p>These three elements are used to create a description list:</p> <dl> <dt>Java</dt> <dd>Java is programming language and platform independent.</dd> <dt>Python</dt> <dd>Python is also a programming language and object oriented.</dd> </dl> </body> </html>
OUTPUT :
The dl, dd, and dt elements
These three elements are used to create a description list:
- Java
- Java is programming language and platform independent.
- Python
- Python is also a programming language and object oriented.