CSS Backgrounds:
*The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method.
➡The value of the background-color property can be specified in three ways:
»Using RGB values e.g. rgb(250,0,0), rgb(0,250,0), etc.
»Using a Hexadecimal(HEX) value e.g. #FFFFFF, #000000, etc.
»Using a valid color name e.g. “white”, “red”, “black”, “blue”, etc.
➡What is CSS background image:
specifies an image to use as the background of an element.
⇒CSS Background Example ;
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: pink;
}
</style>
</head>
<body>
<h1>Hello beauty queen!</h1>
<p>This page has a pink background color!</p>
</body>
</html>
📍Output:
Hello beauty queen!
This page has a pink background color!