Advertisements
Advertisements
Question
What is the purpose of <DT> and <DD> tags in a description list?
Very Long Answer
Advertisements
Solution
In HTML, the
<dt> and <dd> tags are used within a Description List (<dl>) to organise terms and their corresponding descriptions. Their purposes are:<dt>(Description Term): This tag is used to define the term or name (the item being described). It usually appears as the "heading" for the description.<dd>(Description Details): This tag is used to provide the definition or explanation for the preceding<dt>. It is typically indented by browsers to distinguish it from the term.- Structural Organisation: Together, they allow for a structured way to present metadata, glossaries, or frequently asked questions (FAQs) in a clean, hierarchical format.
<dl>
<dt>Browser</dt>
<dd>A software used to view websites.</dd>
</dl>
shaalaa.com
Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
