background-color प्रॉपर्टी
CSS से बैकग्राउंड कलर सेट करने के लिए background-color प्रॉपर्टी का उपयोग करें।
उदाहरण 1: पैराग्राफ पर बैकग्राउंड
<!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>
आउटपुट

उदाहरण 2: बॉडी पर बैकग्राउंड
<!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>
आउटपुट
