Background Color in CSS
The background-color Property
The background-color property is used to specify the background color of an element. It uses three different color formats i.e, color name, hexadecimal values, and RGB.
Syntax:-
Its syntax is:-
< style >
element {
background-color: color| transparent| initial| inherit;
}
< /style >
Further Explanation:-
Value | Description |
---|---|
color | Specifies the background color. |
transparent | Specifies that the background color should be transparent. |
initial | Sets this property to its default value. |
inherit | Inherits this property from its parent element. |
Code Explanation
All Tutorials related to CSS Advance
Box Model
Border
Width and Height
Background Color
Background Image
Background Repeat
Background Attachment
List Styling
Table Styling
Link Styling
Cursor Styling
Display Property
Visibility Property
Positioning in CSS
Floating Property
Overflow Property
Z-index Property