Lists in HTML

 Lists in HTML


HTML provides two types of lists: ordered lists (<ol>) and unordered lists (<ul>). Each list item is represented by the <li> tag. Here's an example:


html


<ul>

  <li>Item 1</li>

  <li>Item 2</li>

  <li>Item 3</li>

</ul>


<ol>

  <li>First item</li>

  <li>Second item</li>

  <li>Third item</li>

</ol>

This will create an unordered list with three items and an ordered list with three items.

No comments:

Post a Comment

The Importance of Cybersecurity in the Digital Age

 The Importance of Cybersecurity in the Digital Age Introduction: In today's digital age, where technology is deeply intertwined with ev...