Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • TYPE OF LIST IN HTML

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 298
    Comment on it

    In html we use list attribute for arranging data in the form of list. Their are two types of list in html.

    • Ordered List
    • Unordered List

    ORDER LIST

    If we want to put our data in numbered form rather than bullets then ordered list will be used.

    We can create order list by using <`ol`> tag. In ordered list the first item will get number one, second will get number 2 and so on.

    Syntax

       <ol>
        <li>Dog</li>
        <li>Cat</li>
        <li>Cow</li>
        <li>birds</li>
        </ol>
    

    OUTPUT

    1. Dog
    2. Cat
    3. Cow
    4. birds

    Unordered List

    If we want to put our data in bullet form rather than numbered then unordered list will be used. We can create unordered list by using <ul> tag All items in unordered list is shown with bullets.

    Syntax

     <ul>
        <li>Tea</li>
        <li>Coffee</li>
        <li>MILK</li>
        <li>Pepsi</li>
        </ul>
    

    OUTPUT

    • Tea
    • Coffee
    • MILK
    • Pepsi

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: