Home / Programming MCQs / HTML MCQs / Question

R

Ram Sharma • 188.81K Points
Coach

Q. Which tag is used to define description lists?

(A) <dl> ... </dl>
(B) <dd> ... </dd>
(C) <dlist> ... </dlist>
(D) <check> ... </check>
Explanation by: Jatin Dubey
The <dl> tag defines a description list.

The <dl> tag is used in conjunction with <dt> (defines terms/names) and <dd> (describes each term/name).

Example:

<dl>
  <dt>Coffee</dt>
  <dd>Black hot drink</dd>
  <dt>Milk</dt>
  <dd>White cold drink</dd>
</dl>

Output:
Coffee
   Black hot drink
Milk
   White cold drink

You must be Logged in to update hint/solution

Discusssion

Login to discuss.