Month End Sale: Get Extra 10% OFF on Job-oriented Training! Offer Ending in
D
H
M
S
Get Now

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.

Example:

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

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

The unordered list element creates a bullet-pointed list.

Example:

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

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.

Example:

<dl>
  <dt>Term 1</dt>
  <dd>Definition 1</dd>
  <dt>Term 2</dt>
  <dd>Definition 2</dd>
  <!-- More terms and definitions can be added here -->
</dl>
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.
CONTACT US
Accept cookies & close this