Lists In Html

Ordered List & Unordered List In Html Chap 5


For creating Ordered list List & Unordered List the Tag of 

<ul> & <ol> are used and inside that <li> lists are used

<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Lists</title>

</head>

<body>

    <h1>Ordered list in html</h1>

    <ol>

<li>100</li>

<li>200</li>

<li>300</li>

<li>400</li>

<li>500</li>


    </ol>

<h1>unordered list in html</h1>

    <ul>

<li>Apple</li>

<li>Mango</li>

<li>Peach</li>

<li>Banana</li>


    </ul>


</body>

</html>




Ordered list in html

  1. 100
  2. 200
  3. 300
  4. 400
  5. 500

unodered list in html

  • Apple
  • Mango
  • Peach
  • Bannana



                            

1 comment:

Powered by Blogger.