This example shows different background styles using Tailwind CSS. The header has a solid color, one section uses a soft color, another uses a gradient, and the footer uses a dark background for contrast.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Background Example</title>
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="m-0 p-0">
<header class="bg-indigo-600 text-white p-6 text-center">
<h1 class="text-3xl font-bold">Welcome to My Site</h1>
</header>
<main class="p-6">
<section class="bg-yellow-200 p-4 rounded">
<p>This section has a soft yellow background to highlight important info.</p>
</section>
<section class="bg-gradient-to-r from-pink-400 via-red-500 to-yellow-500 p-4 mt-6 rounded text-white">
<p>This section uses a colorful gradient background to attract attention.</p>
</section>
</main>
<footer class="bg-gray-800 text-gray-300 p-4 text-center mt-6">
<p>Footer with dark background for contrast.</p>
</footer>
</body>
</html>