Sree Sankar

Lists

There are 2 types of lists

<ol> & <ul>

Ordered List & Unordered List

For defining list items, we use <li> tag as a child of the <ol> or <ul> tag

There are some attributes for Ordered List / OL

Attribute Value Description
reversed reversed Specifies that the list order should be reversed (9,8,7...)
start number Specifies the start value of an ordered list
type 1
A
a
I
i
Specifies the kind of marker to use in the list

Ordered List

        
            <ol>
                <li>list item</li>
                <li>list item</li>
            </ol>
            
    

    Results

  1. list item
  2. list item

Unordered List

            
                <ul>
                    <li>list item</li>
                    <li>list item</li>
                </ul>