HTML Lists

  • In HTML, ul or ol tags are used to make a list. <li> tag is used to specify the elements of the list.
  • These tags are also used for creating menus (vertical menus, horizontal menus, dropdown menus) apart from creating ordered and unordered lists.
  • ul tag is stands for unordered listing whereas ol stands for ordered listing.

Unordered List

<ul>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ul>
  • Item
  • Item
  • Item

Ordered List

<ul>
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ul>
  • Item
  • Item
  • Item

Ordered List – type

<ol type="A">
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ol>

<ol type="a">
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ol>

<ol type="i">
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ol>

<ol type="I">
  <li>Item</li>
  <li>Item</li>
  <li>Item</li>
</ol>
  1. Item
  2. Item
  3. Item
  1. Item
  2. Item
  3. Item
  1. Item
  2. Item
  3. Item
  1. Item
  2. Item
  3. Item
320 Views
79930cookie-checkHTML Lists

Leave a Reply

Your email address will not be published. Required fields are marked *