This webpage uses background colors on the whole page, the header, and a special note box to show how background colors change the look and feel.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Background Color Example</title>
<style>
body {
background-color: #f0f8ff;
font-family: Arial, sans-serif;
margin: 2rem;
}
header {
background-color: #4caf50;
color: white;
padding: 1rem;
border-radius: 0.5rem;
}
.note {
background-color: #ffeb3b;
padding: 0.5rem;
margin-top: 1rem;
border-radius: 0.3rem;
}
</style>
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
</header>
<p>This page shows how background colors can make things look better.</p>
<div class="note">This yellow box uses background color to stand out.</div>
</body>
</html>