Home > Blockchain >  How to make a custom list in html with customized indices?
How to make a custom list in html with customized indices?

Time:05-25

How to make a list like: Item 1: Mango Item 2: Orange Item 3: Papaya Item 4: Avocado in HTML?

CodePudding user response:

You can use Ordered List here as below:

<!DOCTYPE html>
<html>
<body>
<ol>
  <li>Mango</li>
  <li>Orange</li>
  <li>Papaya</li>
   <li>Avocado</li>
</ol>  

</body>
</html>

CodePudding user response:

search up about ul and ol for more

ul is for unordered lists (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul#:~:text=Usage notes-,: The Unordered List element,rendered as a bulleted list.)

ol is for ordered lists, like the one you want (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol#:~:text=Usage notes-,: The Ordered List element,rendered as a numbered list.)

  • Related