Source


<html> <head> <title>Examples on Lists</title> </head> <body> <h3>Unordered List</h3> <ul> <li>India</li> <li>USA</li> <li>UK</li> <li>Germany</li> </ul> <h3>Ordered List</h3> <ol> <li>ECE</li> <li>EEE</li> <li>MECH</li> <li>CSE</li> <li>CIVIL</li> <li>IT</li> </ol> <h3>Definition List</h3> <dl> <dt>HTML</dt> <dd>HyperText Markup Language</dd> <dt>CSS</dt> <dd>Cascading Style Sheet</dd> <dt>JSP</dt> <dd>Java Server Page</dd> <dt>XML</dt> <dd>Xtensible Markup Language</dd> </dl> <h3>Nested List</h3> <ol> <li>Unit - 1</li> <ul> <li>Topic 1</li> <li>Topic 2</li> <li>Topic 3</li> </ul> <li>Unit - 2</li> <ul> <li>Topic 1</li> <li>Topic 2</li> <li>Topic 3</li> </ul> <li>Unit - 3</li> <ul> <li>Topic 1</li> <li>Topic 2</li> <li>Topic 3</li> </ul> </ol> </body> </html>

Output


Unordered List

Ordered List

  1. ECE
  2. EEE
  3. MECH
  4. CSE
  5. CIVIL
  6. IT

Definition List

HTML
HyperText Markup Language
CSS
Cascading Style Sheet
JSP
Java Server Page
XML
Xtensible Markup Language

Nested List

  1. Unit - 1
  2. Unit - 2
  3. Unit - 3