In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article is about whether li is a single tag in html5. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
In html5, li is not a single tag, but a double tag. "and" appear in pairs to define list items; li tags can be used in ordered lists, unordered lists, and menu lists, and the syntax "list item values."
The operating environment of this tutorial: windows7 system, HTML5 version, Dell G3 computer.
In HTML, keywords whose tags are surrounded by angle brackets, usually in pairs such as and, are called "double tags". The start and end tags are also known as open and closed tags.
There are also separate tags, such as:
And so on, this is called "single mark".
A tag that usually appears in pairs with its content between the two tags.
Let's take a look at how it works:
Coffee Tea Milk
As you can see, li tags are paired with "" and "", so li is a double tag.
The label defines the list item.
Tags can be used in ordered lists (), unordered lists (), and menu lists ().
Example:
HTML ordered list
Steps for cooking rice:
Boil the water and add a spoonful of rice to stir well and continue to cook for 10 minutes
Ordered lists need to be used and labeled:
Is the abbreviation of order list, which represents an ordered list. It can number each item in the list, starting with the number 1 by default.
It is an abbreviation for list item, indicating that each item in the list, as many as there are, indicates how many items there are. List items can contain text, pictures, links, and so on, or even another list.
Note that when used in general and in conjunction, it does not appear alone, and it is not recommended to use tags other than directly in.
HTML unordered list
Types of breakfast:
Eggs, milk, bread, lettuce
Unordered lists need to be used and labeled:
It is short for unordered list and stands for unordered list.
As in, represents each item in the list. By default, each item in an unordered list is represented by a ● symbol.
Note that when used in general and in conjunction, it does not appear alone, and it is not recommended to use tags other than directly in.
Open... Cut Paste
Thank you for reading! This is the end of this article on "whether li is a single tag in html5". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.