Topic: CSS Basics

Background color – CSS

Preview

To change the background color of an element using CSS, use the background-color property:

background-color: red;

To view this and the other 300+ tutorials on Simple Dev, sign up for a 10-day free trial.