HTML element classification-list element
0.
Element (unordered list): Defines an unordered list.
Element (ordered list): Defines an ordered list.
- Element (list item): Defines the item of the list.
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ul>
<!--去除列表项前面的黑点-->
<style>
li {
list-style-type:none;
}
</style>
Copy after login
<ol>
<li>Coffee</li>
<li>Tea</li>
<li>Milk</li>
</ol>
Copy after login
1.
Element (definition list): defines the definition list.
- Element (definition title): Defines the name of the item in the definition list (that is, the term part).
- Element (definition definition): The definition part of the definition item in the definition list, that is, the explanation of the project name.
<dl>
<dt>计算机</dt>
<dd>用来计算的仪器 ... ...</dd>
<dt>显示器</dt>
<dd>以视觉方式显示信息的装置 ... ...</dd>
</dl>
Copy after login
The above is a commonly used list. The