Please note, this is a STATIC archive of website technosmarter.com from 20 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
 

HTML Lists | Ordered List | Unordered List


HTML lists are define the item list .
Lists are used to the representation of Items ordered and unordered.

There are two types of list-
1. Ordered List
2. Unordered List

Ordered List -

Ordered list defines the item within unique identity like -
1. Item .
2. Item2
3. Item3
4. Item

A.Item
B.Item
C.Item
D.Item

I.Item
II.Item
Iii.item

a. Item
b. Item
i.item
ii.item

List type like(A-Z,a-z,1-10,I-II,i-ii) is specified the type tag -
To initiate the order list you need to specify the

    tag and type .

    Syntax-
    Same for all types -
    
    type="A"  ,   type="I"  , type="a", type="I" 
    


    The following list example will show you how to display the ordered list on the document page -

    List Start Element - (List counting)
    Start elements is defines the start position of list -
    The following example of start element .


    Unordered List -

    Unordered lists are opposite to the ordered list . In the unordered list there are no unique number or character to specify it .
    The unordered list represent on y the dost(.)
    Example-
    .item
    .item
    .item
    The following example will show you the ordered and unordered list -


    HTML Lists Type


    <!DOCTYPE html>
    <html>
    <head>
    <title>HTML Lists </title>
    </head>
    
    <body>
    <h1> Ordred List </h2>
    
    1. Samsung
    2. Nokia
    3. Redmi

    Using type attribute

    1. Samsung
    2. Nokia
    3. Redmi

    Unordered List

    • Samsung
    • Nokia
    • Redmi
    </body> </html>
    Run

    Please Share

    Recommended Posts:-