The list tags of html web pages are divided into three types: 1. Unordered list, defined using the "
" tag; 2. Ordered list, defined using the "
" tag; 3. Custom list, defined using the "
" tag.
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
html List of web pages
Unordered list
Yes Sequence list
Customized list
1. Unordered list
Unordered list is A list of items marked with bold dots (typically small black circles).
Unordered lists use the
<ul> <li>列表项</li> <li>列表项</li> <li>列表项</li> </ul>
The browser displays the following:
2. Ordered list
Similarly, the same is true for ordered lists A list of items labeled with numbers. The ordered list begins with an
List items are marked with numbers.
<ol> <li>第一个列表项</li> <li>第二个列表项</li> <li>第三个列表项</li> </ol>
The browser displays as follows:
3. Customized list
Customized list is not just A list of items, but a combination of items and their comments.
Custom lists start with a
<dl> <dt>Coffee</dt> <dd>黑热饮</dd> <dt>Milk</dt> <dd>白冷饮</dd> </dl>
The browser displays as follows:
Tips: Paragraphs, line breaks, pictures, links and others can be used inside the list items Lists and more.
Recommended tutorial: "html video tutorial"
The above is the detailed content of What are the types of list tags in html web pages?. For more information, please follow other related articles on the PHP Chinese website!