HTML Practical 9 | Web-Programming | WebDevs I CS

The Combine Website of all Practicals till 1 to 15 will upload Soon !!!






Practical 9


Index.HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>List Styling with CSS</title>
    <style>
        /* Style the <li> elements */
        li {
            display: inline; /* Set display to inline */
            border: 2px double black; /* Add a medium, double-lined, black border */
            list-style-type: none; /* Remove the default list-style-type */
            margin: 5px; /* Set margin to 5px on all sides */
            padding: 10px 20px 10px 20px; /* Set padding (top, right, bottom, left) */
        }
    </style>
</head>
<body>
    <ul>
        <li>List Item 1</li>
        <li>List Item 2</li>
        <li>List Item 3</li>
    </ul>
</body>
</html>


Post a Comment

Previous Post Next Post