CSS Lists with Examples

Full Stack Web Development Courses with Real-time projects Start Now!!

Program 1

<html>
    <head>
        <style>
            /*ul{
                background-color: aqua;
                width:500px;
            }
            ul li{
                background-color: aquamarine;
                padding:20px;
                width:400px;
               /* list-style-position: inside;
               list-style-type:none;
            }*/
            ul li{
                list-style-type:none;
                
            }
            ul{
                margin:0;
                padding:0;
            }
        </style>
    </head>
    <body>
        <ul>
            <li>Tea</li>
            <li>Milk</li>
            <li>Coffee</li>
        </ul>
    </body>
</html>

 

If you are Happy with DataFlair, do not forget to make us happy with your positive feedback on Google

courses
Image

DataFlair Team

DataFlair Team provides high-impact content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. We make complex concepts easy to grasp, helping learners of all levels succeed in their tech careers.

Leave a Reply

Your email address will not be published. Required fields are marked *