Lists are used to list a series of similar or related items.
Unordered list (list of items)
The tag for
unordered list is
, and each list item is tagged with
. Next, we will use an unordered list to rewrite our "index.html". After opening the previously saved file, modify the code in the "Services for Students" section to the following unordered list code:
Services for students
- Ghostwriting for winter and summer vacation assignments (mathematics does not guarantee that there are no wrong questions, Chinese does not guarantee that there are no typos, English homework you Find someone else)
- Help bully students fourth grade and below, extra fees will be charged for special cases.
- Parents will help pretend to be parents.
Browse the web page after saving. Please confirm that your web page is the same as this page. .
ordered list
The tag for an ordered list is
, and the list items are still
. We then use an ordered list to rewrite the "for parents" section of "index.html", and change the in the code we just modified to
:
- Ghostwriting for winter and summer vacation assignments (Mathematics no guarantees no typos, Chinese no guarantee no typos, find someone else for English homework! ).
- Help bully students below fourth grade, Special bodies are subject to additional charges.
- Parents will help Pretend to be a parent.
After saving and browsing the webpage, please confirm that the effect of your page is the same as this page. We can see that the difference between an unordered list and an ordered list is whether each item is preceded by a dot or a number.