Home  >  Article  >  Web Front-end  >  Types of HTML lists

Types of HTML lists

(*-*)浩
(*-*)浩Original
2019-09-10 16:35:403224browse

HTML supports ordered, unordered and defined lists

Types of HTML lists

##Unordered list

An unordered list is a list of items marked with bold dots (typically small black circles).

Unordered list starts with ff6d136ddc5fdfeffaf53ff6ee95f185 tag. Each list item begins with 25edfb22a4f469ecb59f1190150159c6. (Recommended learning:

HTML Introduction Tutorial)

<ul>
<li>Coffee</li>
<li>Milk</li>
</ul>

The browser displays as follows:

CoffeeMilk

Paragraphs, line breaks, and pictures can be used inside list items , links, other lists, etc.

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 the c34106e0b4e09414b63b2ea253ff83d6 tag. Each list item begins with a 25edfb22a4f469ecb59f1190150159c6 tag.

<ol>
<li>Coffee</li>
<li>Milk</li>
</ol>

The browser displays as follows:

CoffeeMilk

Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside the list items.

Define List

A custom list is not just a list of items, but a combination of items and their comments.

Custom lists start with a 5c69336ffbc20d23018e48b396cdd57a tag. Each custom list item begins with 73de882deff7a050a357292d0a1fca94. The definition of each custom list item begins with 67bc4f89d416b0b8236eaa5f43dee742.

<dl>
<dt>Coffee</dt>
<dd>Black hot drink</dd>
<dt>Milk</dt>
<dd>White cold drink</dd>
</dl>

The browser displays as follows:

Coffee
Black hot drink
Milk
White cold drink

Paragraphs, line breaks, pictures, links, other lists, etc. can be used inside the list items of the defined list.

The above is the detailed content of Types of HTML lists. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:The HTML image tag isNext article:The HTML image tag is