Ul, ol, DL differences

Source: Internet
Author: User
1. UL is an unordered list. In other words, Li can be added without any restriction;
<Ul>
<Li> available </LI>
<Li> available </LI>
<Li> available </LI>
</Ul>
. Can be placed at will
. Can be placed at will
. Can be placed at will

2. Ol will be a sequence table, which will be arranged in sequence according to the Li you wrote;
<Ol>
<Li> I am the first </LI>
<Li> I am the second </LI>
<Li> I am the third </LI>
</OL>
1. I am the first
2. I am the second
3. I am the third

3. DL is the definition list, which defaults to the front-end hierarchical relationship;
<DL>
<DT> I am the header </DT>
<DD> content </DD>
<DD> content </DD>
</Dl>
I am the first
-- Content
-- Content

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.