Home >Web Front-end >H5 Tutorial >HTML5 2__ list tag
There are many basic tags in HTML5. Today we will introduce the list tag
List tag The list tag can arrange text elements in the form of a list in the web page. There are three types of list tags: ordered list, unordered list, Custom list
like:
<ul type=a> <li>苹果</li> <li>桃</li> </ul>
is called an unordered list, which is displayed as a, b, c, etc. in FireFox, and other browsers are displayed as dots;
<ol> <li>西红柿</li> <li>茄子</li> </ol>
It is called an ordered list, displayed as 1, 2, 3, etc.;
73de882deff7a050a357292d0a1fca94Huec72c1af5e0e7f90179c047c5ef85885e
73de882deff7a050a357292d0a1fca94The appearance and name of hue
It’s called a custom table
Look at the code
<!DOCTYPE> <html > <head> <meta charset="gb2312" /> <title>演示列表标记</title> </head> <body> 水果<ul> <li>苹果</li> <li>桃</li> </ul> <ol> <li>西红柿</li> <li>茄子</li> </ol> <dt>色相</dt> <dt>色相的相貌、名称</dt> </body> </html>
Running effect