laitimes

What are the html list tags? You should know

author:Python tutorial beginner detailed

We continue our html knowledge, this lesson focuses on the knowledge of lists, where lists in turn contain unordered, ordered, and custom lists.

1. Unordered, ordered and custom lists

Taking e-commerce websites as an example, the unordered list is a list that has nothing to do with the order and can be discharged at will, such as the classification page of the e-commerce website; the ordered list is the opposite of the unordered list, and there is an ordered such as leaderboard data; the custom list is a parent-child relationship, a large tag with a group of small tags, similar to the help center, pay attention to us, etc.

What are the html list tags? You should know
What are the html list tags? You should know
What are the html list tags? You should know

2. The main format of the unordered list is as follows:

What are the html list tags? You should know

For example, if we want to use an unordered list to display the contents of a category page:

What are the html list tags? You should know
What are the html list tags? You should know

3. The main format of the ordered list:

It is mainly composed of ol and li tags. Where only the li tag can be entered in ol, and any element can be written in the li tag

What are the html list tags? You should know

We can see the difference between the main and unordered tables through the following example.

What are the html list tags? You should know
What are the html list tags? You should know

4. Custom list format:

The custom list is mainly composed of a large label and several small labels, where dt is equivalent to a leader and dd is equivalent to a group of lambs

What are the html list tags? You should know

In the next lesson, we'll focus on summarizing information about forms, including input forms, text forms, and drop-down forms.

Read on