Standalone Search Box Example

Background Color Property In CSS

0 Kudos

Background Color Property In CSS

👨‍💼There are basically 5 parameters involved in it.

1.Using hexa decimal:
background-color: #FFFFFF;
2.Using RGB:
background-color: rgb(255,255,255);
3.Using Color Name:
background-color: white;
4.transparent
background-color: transparent;

5.inherit
background-color: inherit;

 

Spoiler
CSS@123

Sample Code:

<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: coral;
}
</style>
</head>
<body>

<h1>The background-color Property</h1>

<p>The background color can be specified with a color name.</p>

</body>
</html>

 

1 Comment
bhanu
Occasional Contributor

nice karthik

n