Current location - Quotes Website - Personality signature - What is an ordered list in HTML?
What is an ordered list in HTML?

An ordered list is a list in order, that is, there is 123 or abc in front of the list. The English word is "Ordered List" and the tag is

    . Its function is to display an ordered list on the web page.

    Syntax

    1. List item 1
    2. List item 2

    3. List item n

    Description, like

      , each list item also Use the
    • tag.

      Attributes

      1. type, defines the matching mark type in front of each list item, the choices are: A (uppercase letter), a (lowercase letter), I (uppercase Roman text) ), i (lowercase Roman), 1 (number 1), etc.

      Note

      1.

        represents an unordered list, while
          represents an ordered list.

          2.

        1. You can use other HTML elements such as hyperlinks, paragraphs, line breaks, pictures, etc. in list item tags.

          3. Brother Hong does not recommend using the type attribute of

            . Because of the advent of CSS, the type attributes of ol and ul are not used much anymore, and CSS is used to style the list.