Background Color
Background Color ~10 mins - css

Background color

 <div>This will have a red background</div

Color Names

    div {
background-color: red; /* red */
}

Hex color codes

    body {
background-color: #de1205; /* red */
}
.main {
background-color: #00f; /* blue */
}

RGB / RGBa

   header {
background-color: rgb(0, 0, 0); /* black */
}
footer {
background-color: rgba(0, 0, 0, 0.5); /* black with 50% opacity */
}

HSL / HSLa

   li a {
background-color: hsl(120, 100%, 50%); /* green */
}
#p1 {
background-color: hsla(120, 100%, 50%, .3); /* green with 30% opacity */
}

Interaction with background-image

    body {
background: red;
background-image: url(partiallytransparentimage.png);
}
body {
background-color: red;
background-image: url(partiallytransparentimage.png);
}
body {
background-image: url(partiallytransparentimage.png);
background-color: red;
}
body {
background: red url(partiallytransparentimage.png);
}