In HTML5, unordered lists are created using ul tags and li tags. The ul tag is used to define an unordered list, and the li tag is used to define list items in the unordered list. The syntax is "
Unordered list item ".
The operating environment of this tutorial: Windows 10 system, HTML5 version, Dell G3 computer.
What is the usage of unordered list in html5
Use the
The syntax is:
<ul><li>无序列表项</li></ul>
The example is as follows:
<html> <head> <meta charset="utf-8"> <title>123</title> </head> <body> <h4>无序列表:</h4> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> </body> </html>
Output result:
Recommended tutorial: "html video tutorial"
The above is the detailed content of What is the usage of unordered list in html5. For more information, please follow other related articles on the PHP Chinese website!