7 Program to demonstrate Ordered List in HTML

Program:
<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="UTF-8">

    <title>HTML Ordered List</title>

</head>

<body>



    <h2> Ordered List with type 1 </h2>

    <ol type="1">

        <li> Coding Atharva </li>

        <li> Instagram: </li>

        <li> @theatharvagrawal </li>

    </ol>

    <h2> Ordered List with type A </h2>

    <ol type="A">

        <li> Coding Atharva </li>

        <li> Instagram: </li>

        <li> @theatharvagrawal </li>

    </ol>

    <h2> Ordered List with type a </h2>

    <ol type="a">

        <li> Coding Atharva </li>

        <li> Instagram: </li>

        <li> @theatharvagrawal </li>

    </ol>

    <h2> Ordered List with type i </h2>

    <ol type="i">

        <li> Coding Atharva </li>

        <li> Instagram: </li>

        <li> @theatharvagrawal </li>

    </ol>

    <h2> Ordered List with type I </h2>

    <ol type="I">

        <li> Coding Atharva </li>

        <li> Instagram: </li>

        <li> @theatharvagrawal </li>

    </ol>

</body>

</html>



Output:

Ordered List in HTML

Previous
Next Post »