CSS Course
About Lesson
CSS – Colors

The color property in CSS is used to set the color of HTML elements. Typically, this property is used to set the background color or the font color of an element.

In CSS, we use color values for specifying the color. We can also use this property for the border-color and other decorative effects.

We can define the color of an element by using the following ways:

RGB format.
RGBA format.
Hexadecimal notation.
HSL.
HSLA.
Built-in color.

Background-color Property

The background-color property changes the background color of the element. All elements default to a transparent background.

Example

background-color: #FF0000;


Exercise Files
No Attachment Found
No Attachment Found
Join the conversation

Introducing Official ApeStaking Protocol for ApeCoin.

New Blur NFT Marketplace Courting Professional.