Saturday 26 February 2022

HTML document for list tag

 LIST TAG 

Code :

<!doctype html>

<html>

    <head>

       <title>List tag</title>

    </head>

    <body>

        <h1 align="center"><u>List tag in HTML</u></h1>

        <h2>Ordered List: </h2>

        <h3>Vegetables</h3>

        <ol>

           <li>Tomato</li>

           <li>Potato</li>

           <li>Pumpkin</li>

           <li>Onion</li>

        </ol>

        <h2>Unordered List:</h2>

        <h3>Fruits</h3>

        <ul>

           <li>Apple</li>

           <li>Orange</li>

           <li>Banana</li>

           <li>Pineapple</li>

        </ul>

        <h2>Definition list:</h2>

        <dl>

           <dt>Vegetables</dt>

           <dd>Vegetable are very healthy and tasty to eat. Each vegetable has its own benefits of eating. vegetable are also used to make medicines and juice.

           </dd>

           <dt>Fruits</dt>

           <dd>Fruits are natural and very tasty and healthy to eat. Fruits are also used to make juice and its commonly people drinks it by making juice of them.

           </dd>

        </dl>

                

    </body>

</html>

OUTPUT :


Come again Learn again !

< iCodeBuzz />


No comments:

Post a Comment