Home >Web Front-end >HTML Tutorial >Application of various list elements in html (an example)
The content this article brings to you is about the application of various list elements in HTML (an example). It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
1. List elements
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <!-- list-style: none;可以清除有序列表或无序列表前面的数字或者符号--> <style type="text/css"> ul { list-style: none; } </style> </head> <body> <ul type="circle"><!--空心圆无序列表--> <li>first</li> <li>second</li> <li>third</li> </ul> <ul type="disc"><!--disc是默认值,实心圆无序列表--> <li>first</li> <li>second</li> <li>third</li> </ul> <ul type="square"><!--实心方框,无序列表--> <li>first</li> <li>second</li> <li>third</li> </ul> <ol type="A"><!--以字母A开始的有序列表--> <li>first</li> <li>second</li> <li>third</li> </ol> <ol type="a"><!--以字母a开始的有序列表--> <li>first</li> <li>second</li> <li>third</li> </ol> <ol type="i"><!--以小写罗马数字开始的有序列表--> <li>first</li> <li>second</li> <li>third</li> </ol> <ol type="I" start="2"><!--以大写罗马数字开始的有序列表,start规定了列表开始的值--> <li>first</li> <li>second</li> <li>third</li> </ol> <ol type="I"><!--以大写罗马数字开始的有序列表,value规定了第三个从Ⅳ开始,规定了第六个从Ⅷ开始--> <li>first</li> <li>second</li> <li value="4">third</li> <li>fouth</li> <li>friday</li> <li value="8">六</li> <li>七</li> </ol> <dl><!--dl自定义列表,dt列表中的项目,d项目描述,自动换行并有缩进--> <dt>一</dt> <dd>hello world</dd> <dd>welcome to html5</dd> <dt>二</dt> <dd>kan kan xiaoguo</dd> </dl> </body> </html>
2. Effect display
Related recommendations :
Understand the 30 element attributes of the input element of the HTML form_html/css_WEB-ITnose
The above is the detailed content of Application of various list elements in html (an example). For more information, please follow other related articles on the PHP Chinese website!