Set 98 Practical Question

⭐ Q48 – HTML: Background Color + Background Image

Example Code (Read Only):


<!DOCTYPE html>
<html>
<head>
<title>Background</title>

<style>
body{
    background-color: lightblue;     /* color */
    background-image: url("mikul.jpg"); /* image */
    background-repeat: no-repeat;
    background-size: contain;
}
</style>

</head>
<body>

<h2>Background Example</h2>
<p>This page contains color and image.</p>

</body>
</html>

Write Your HTML / JavaScript Code