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 the full tutorial, sign up for a free trial on our Sign Up page.