The list in HTML

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.