<?xml version="1.0" encoding="utf-8"?>

CSS background-color property

CSS background-color property Bad Practice
CSS background-color property Best Practice

For setting a background for elements, we use the background-color property. To specify the color, developers usually refer to its valid HTML name,[1] HEX, RGB, or other codes supported by CSS.[1]

Improve your UX & Product skills with interactive courses that actually work