Advertisements
Advertisements
प्रश्न
What is the purpose of <DT> and <DD> tags in a description list?
सविस्तर उत्तर
Advertisements
उत्तर
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
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Official Board Paper
