HTML Knowledge points Summary of Ul,ol,li tags

Source: Internet
Author: User
Tags deprecated

The HTML list is divided into sequential tables, unordered lists, and descriptions. We often use a sequence list (OL) with an unordered list (UL).

  • Ordered list

<ol> tags can define an ordered list, which is called a sequential table, because it can have sort functions. Specific list items are specified using the <li> element.

Type attribute: Implements ordered sorting in different ways, deprecated, and usually replaces it with a style.

(1) 1 indicates the sort in 1,2,3,4 numeric form.

(2) A means sorting in a,b,c,d lowercase letters.

(3) A means sorting in a,b,c,d capitals.

(4) I denotes the sort in lowercase by i,ii, iii Roman numerals.

(5) I means sort in uppercase i,ii,iii Roman numerals.

The numbering style can be defined using the List-style-type property in CSS.

The new reversed attribute in HTML5 can be ordered in reverse order.

  • Unordered list

The HTML unordered list is defined by the <ul> tag, which is called a no-sequence table because the list does not have a sort function. The specific list item is also specified using the <li> element.

Type property: Defines the symbol shape in front of the list item, deprecated, and usually replaces it with a style.

(1) Dise: Solid Circle (default value).

(2) Circle: Hollow Circle.

(3) Square: solid block.

?

HTML Knowledge points Summary of Ul,ol,li tags

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.