Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style>
body {
  background-color: #fefbd8;
}
h1 {
  background-color: #80ced6;
}
div {
  background-color: #d5f4e6;
}
span {
  background-color: #f18973;
}
</style>
</head>
<body>
<h1>Background Color</h1>
<div>Set a background color for a div element.</div>
<p>Set a <span>background color</span> for only a part of a text.</p>
</body>
</html>