![]() |
HTML Description List <dl> organizes terms and descriptions, utilizing <dt> and <dd> tags within <dl>. This structured format clarifies content presentation, enhancing comprehension and readability for diverse information on web pages. Syntax <dl>
<dt>Course</dt>
<dd>DSA</dd>
<dt>Language</dt>
<dd>Python</dd>
</dl> Description Lists Tags
Example 1: In this example, we demonstrate a description list with terms and their descriptions, including HTML, CSS, and JavaScript, providing concise information about each.
Output: ![]() HTML Description Lists Example Output Example 2: In This example we represents a description list with one term (“GeeksforGeeks”) and two descriptions. The second description contains a nested description list with terms (“Courses”) and their corresponding descriptions.
Output: ![]() HTML Description Lists Example Output HTML Description Lists – FAQsWhat is the usevof the <dl> tag?
How do I use the <dt> tag?
What does the <dd> tag do?
Can description lists be nested?
Can I style description lists with CSS?
|
Reffered: https://www.geeksforgeeks.org
HTML |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 12 |