HTML Practical 8 | Web-Programming | WebDevs I CS

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






Practical 8


Index.HTML

    <!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Financial Report</title>
    <style>
        /* Create a class called income and set the background color to #0ff */
        .income {
            background-color: #0ff;
            color: #fff; /* Set text color to white for better visibility */
        }

        /* Create a class called expenses and set the background color to #f0f */
        .expenses {
            background-color: #f0f;
            color: #fff; /* Set text color to white for better visibility */
        }

        /* Create a class called profit and set the background color to #f00 */
        .profit {
            background-color: #f00;
            color: #fff; /* Set text color to white for better visibility */
        }
    </style>
</head>
<body>
    <h1>Financial Report</h1>
    <p>The <span class="income">income</span> for this quarter was excellent.</p>
    <p>We need to carefully monitor our <span class="expenses">expenses</span> in the coming months.</p>
    <p>The company's <span class="profit">profit</span> margin has been decreasing recently.</p>
    <p>The current price is <span class="expenses">50₹</span> and the new price is <span class="income">40₹</span>.</p>
</body>
</html>


2 Comments

Previous Post Next Post