Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


advertisement
 

HTML Basics: Lists : Page 5

Add step-by-step numbered lists and bulleted lists to your pages.


advertisement
Definition List

<dl>
<dt>
<dd>
</dl>

The definition list displays items in two parts. The first is a definition term. The second is a definition description. The default display places the definition term in bold and the whole list indented (some browsers).



A definition list uses four tags.

  1. The list begins with the <dl> tag.
  2. Each definition term in the list is marked with the definition term tag, <dt>.
  3. Each indented definition in the list is marked with a definition tag, <dd>.
  4. The list ends with an end definition list tag, </dl>.

There are nine planets:<br>
<dl>
<dt>Mercury
<dd>The closest planet to the sun.
<dt>Venus
<dd>The mysterious planet, shrouded in clouds.
<dt>Earth
<dd>Our little blue orb.
<dt>Mars
<dd>The red planet. Was there ever life there?
<dt>Jupiter
<dd>The biggest planet with many moons.
<dt>Saturn
<dd>The planet best-known for its beautiful rings.
<dt>Uranus
<dd>Uranus has rings too—nine of them, but you can't see them from Earth.
<dt>Neptune
<dd>This planet is 17 times bigger than Earth and has a 17 hour day.
<dt>Pluto
<dd>At the end of our solar system, this planet is distant and cold.
</dl>

There are nine planets:
Mercury
The closest planet to the sun.
Venus
The mysterious planet, shrouded in clouds.
Earth
Our little blue orb.
Mars
The red planet. Was there ever life there?
Jupiter
The biggest planet with many moons.
Saturn
The planet best-known for its beautiful rings.
Uranus
Uranus has rings too—nine of them, but you can't see them from Earth.
Neptune
This planet is 17 times bigger than Earth and has a 17 hour day.
Pluto
At the end of our solar system, this one is distant and cold.


Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date