The list in HTML
There are three basic forms of HTML in the list:
- Ordered list
- Unordered list
- Definition List
The sequence list is defined with <ol> </ol> tags, and the specific entries are given in the content between the <li></li> tags. Automatically add an ordinal when opened in a browser, and wrap lines between different list items.
For example:
<ol>
<li> Order First </li>
<li> ordered article II </li>
</ol>
Unordered list
Defined with <ul></ul> tags, items are labeled with <li></li> as ordered lists. However, when opened in a browser, the display results are different from the ordered list, and no ordinal is added, but a point is added.
For example:
<ul>
<li> unordered First </li>
<li> unordered Second article </li>
</ul>
Definition List
With the <dl></dl> label to define, the small headings of different items are given by <dt></dt>, the specific content is given by <dd></dd>.
For example:
<dl>
<dt> Small title 1</dt>
<dd> Specific Content 1 </dd>
<dt> Small Title 2 </dt>
<dd> Specific Content 2</dd>
</dl>
The above three types of code display the following results:
The list in HTML