CSS ব্যবহার করে ব্যাকগ্রাউন্ড কালার সেট করতে, ব্যাকগ্রাউন্ড-কালার প্রপার্টি ব্যবহার করুন।
উদাহরণ
আসুন এখন একটি উদাহরণ দেখি -
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
text-decoration: overline underline;
background-color: red;
}
</style>
</head>
<body>
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html>৷ আউটপুট

উদাহরণ
আসুন এখন আরেকটি উদাহরণ দেখি -
<!DOCTYPE html>
<html>
<head>
<style>
.demo {
text-decoration: overline underline;
}
</style>
</head>
<body style="background-color: orange;color: white;">
<h1>Details</h1>
<p class="demo">Examination Center near ABC College.</p>
<p class="demo2">Exam begins at 9AM.</p>
</body>
</html> আউটপুট
