Thursday, 30 May 2013

Definition list: HTML

To create a definition list in HTML, you can use the following syntax.

Syntax:

 <dl>
    <dt> Bike </dt>
        <dd> Two wheeler </dd>
    <dt> Car </dt>
        <dd> Four wheeler </dd> 
 </dl>
 
Output:
Bike
   Two wheeler
Car
    Four wheeler

No comments:

Post a Comment