background-color property ব্যবহার করে এলিমেন্টের পটভূমির রঙ সেট করা যায়।
উদাহরণ
নিচের কোডটি রান করে background-color property-র কাজ শিখুন:
<html>
<head>
</head>
<body>
<p style="background-color:blue;">
This text has a blue background color.</p>
</body>
</html>
রঙের ফরম্যাট: নাম (red), HEX (#FF0000), RGB (rgb(255,0,0)), RGBA (rgba(255,0,0,0.5)), HSL ইত্যাদি ব্যবহার করা যায়।