TECH PIXEL

Welcome to Python Practice Projects at techtpixel.xyz — your one-stop hub to master Python through real-world, beginner to advanced projects. Learn by building web apps, scripts, automation tools, APIs, and more. Whether you're into data science, Django, Flask, or interview prep, our hands-on tutorials help you level up your skills and build a strong portfolio. Start coding smarter with practical Python challenges today!

How to create ordered list or unordered list using HTML Code

 

Creating Bulleted and Numbered Lists

The tag for a numbered list is <ol>, which stands for ordered list. For a bulleted list, the tag is <ul>, which stands for unordered list. Each numbered or bulleted item within the

list is tagged <li>, for list item. You start the list with the opening <ol> or <ul> tag, enclose each list item with <li> and </li> tags, and then end the list with the closing </ol> or </ul> tag. Here’s the numbered list from the previous example, this time using the proper tags.

Unordered list:

Coding:

<! Doctype html>

<html>

<body>

<ul>

<li>Bring in the mail</li>

<li>Take out the trash</li>

<li>Feed the dogs</li>

<li>Stop the newspaper delivery</li>

</ul>

 

</body>

</html>

Output:

Unordered List


Ordered list:

Coding:

<! Doctype html>

<html>

<body>

<ol>

<li>Click in the Login box</li>

<li>Type <b>premium</b></li>

<li>Click in the Password box</li>

<li>Type <b>customer</b></li>

</ol>

 

</body>

</html>

Output:

Ordered list


Post a Comment

0 Comments