", each list item starts with "
Home >Web Front-end >HTML Tutorial >What is the html definition list tag?
html defines list tags: 1. Unordered list tag "
", each list item starts with the "
- " tag; 2. Ordered list "
" , each list item starts with the "
- " tag; 3. Customized list "
", the list item starts with "
- ", and the definition of the list item starts with "
- " .
The operating environment of this tutorial: Windows 7 system, HTML5 version, Dell G3 computer.
HTML Unordered List
An unordered list is a list of items marked with bold dots (typically small black circles).
Unordered list uses
<ul> <li>Coffee</li> <li>Milk</li> </ul>
The browser displays as follows:
##HTML ordered list
Similarly, an ordered list is also a list of items, and the list items are marked with numbers. The ordered list starts with theHTML video tutorial]
List items are marked with numbers.<ol> <li>Coffee</li> <li>Milk</li> </ol>The browser displays as follows:
HTML custom list
The custom 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>-Black hot drink</dd> <dt>Milk</dt> <dd>-White cold drink</dd> </dl>The browser displays the following: For more programming-related knowledge, please visit:
Programming Video! !
The above is the detailed content of What is the html definition list tag?. For more information, please follow other related articles on the PHP Chinese website!