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

Background color

Background color Bad Practice
Background color Best Practice

The default background color is transparent, meaning that most browsers will use a white background if you don't specify otherwise anywhere on the page.

You can apply the background-color property to pretty much any element: set the page background in the <body> element, or set the text background in text elements like <h1>. Similar to adjusting text color, you can use different types of values to set the background color: color name (orange), hex value (#FFA500) or RGB value (rgb(255, 165, 0)).

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