" corresponds to each definition of the definition item, and the custom list is defined with "
Home > Article > Web Front-end > In html language, what are the three commonly used lists?
Commonly used lists are: 1. Ordered list, the items are included in the li tag pair, and are defined with ol; 2. Unordered list, the items are included in the li tag pair, and are defined with ul; 3. Self Defined list, items are included in dt tag pairs, "
" corresponds to each definition of the defined item, custom list is defined with "".
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
Ordered list, the list items are contained in the
Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside list items.
For example:
<ol> <li>Coffee</li> <li>Milk</li> </ol>
Effect:
Unordered list, the list items are contained in the
Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside the list items.
For example:
<ul> <li>Coffee</li> <li>Milk</li> </ul>
Effect:
Customized list, the list items are included in the
tag In the center, each definition corresponding to the definition item, the custom list is defined withlist item Paragraphs, line breaks, pictures, links, other lists, etc. can be used internally.
For example:
<dl> <dt>Coffee</dt> <dd>Black hot drink</dd> <dt>Milk</dt> <dd>White cold drink</dd> </dl>
Effect:
##Extension:List tag Recommended learning:The above is the detailed content of In html language, what are the three commonly used lists?. For more information, please follow other related articles on the PHP Chinese website!