👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
The HTML list tag is used to create lists on a web page. It can create three types of lists:. Ordered lists, the lists fleas and description lists
When you create a Web page, you can present the information in a well formatted list. For example, you can have a list of student names that you want to display as a list, or you can have a series of blog posts that you want to form a list.
In HTML
, there is a built-in function that allows you to create lists. In this tutorial, we will cover the types of HTML
lists and how to implement them in a web page.
Types of HTML List
There are three types of lists in HTML
and each has a specific purpose and code. These are as follows:.
Sorted list
- used to create a list of items in a specific orderUnordered list
: . Allows you to create a list of articles without orderlist of descriptions
:. Allows you to create a list of articles and descriptions
Lists can appear anywhere on a webpage, whether you put them in text, after line breaks, or even in another list to create a nested list. Let’s explore how to create these three types of lists in
HTML
HTML Lists:. Sorted
sorted lists
are used in HTML
when ordering of the list is needed. For example, if you have a series of statements that need to be executed in a particular order, use an ordered list. sorted lists
are numbered lists.
sorted lists
use the
and each item in the list uses a . Here is an example of an ordered list:
In the example above, we have created a basic pancake recipe . Each step in this list must be done in order, so we have chosen an ordered list. Here is the output of our code: