HTML Lists

Level : Intermediate
Mentor: Shailendra Chauhan
Duration : 00:00:30

Ordered List (ol) and List Item (li):

The ordered list element creates a numbered list, and the list item element defines each item in the list.


  <li>Item 1</li>
  <li>Item 2</li>

Unordered List (ul) and List Item (li):

The unordered list element creates a bullet-pointed list.


  <li>Item A</li>
  <li>Item B</li>

Description List (Definition List):

A Description List, also known as a Definition List, is an HTML element used to define terms and their corresponding definitions. It's structured with the <dl> (description list) element containing sets of <dt> (definition term) and <dd> (definition description) elements. The <dt> tag represents the term you're defining, while the <dd> tag contains the actual definition.


  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>
  <!-- More terms and definitions can be added here -->
Self-paced Membership
  • 22+ Video Courses
  • 800+ Hands-On Labs
  • 400+ Quick Notes
  • 55+ Skill Tests
  • 45+ Interview Q&A Courses
  • 10+ Real-world Projects
  • Career Coaching Sessions
  • Email Support
Upto 60% OFF
Know More
Still have some questions? Let's discuss.
Accept cookies & close this