HTML list description

<ul> </ ul> Unordered List

<ol> </ ol> Ordered List

<li> Tags define list items.

<li> tags can be used in ordered lists (<ol>) and unordered lists (<ul>)

 

Two commonly used CSS list properties

CSS3 help documentation

list-style-type:x

x can have many attributes, and you can choose your own square

 

Lists can be nested, just like the article directory structure, there are first-level lists and second-level lists ...

 

There is also a list called definition list

dl

dt

dd

Definition list

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

The custom list starts with the <dl> tag. Each custom list item starts with <dt>. The definition of each custom list item starts with <dd>.

Difference and application of dl, dt, dd, ul, li, ol in HTML list

The list elements represented are: 

 

 

 

 

 

 

 

 

 

 

 

 

Published 105 original articles · won praise 4 · Views 5141

Guess you like

Origin blog.csdn.net/LBJ8888888/article/details/105351627