এলিমেন্টের পটভূমির রঙ সেট করতে 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>
নোট: রঙ নির্দিষ্ট করতে হেক্স কোড (#0000FF), RGB (rgb(0,0,255)), বা রঙের নাম (blue) ব্যবহার করা যায়।