The example explains how we can color different element with different backgrounds.
<head>
<style>
h1 {
background-color: #6395ed;
}
p {
background-color: #e000ff;
}
div {
background-color: #b000de;
}
</style>
</head>
<body>
I'am colored
<div>
This is a colored div.
This is a colored para
We are still in the div element.
</div>
</body>
</html>
Comments
Post a Comment