HTML: Background color

This entry is part 20 of 34 in the series HTML

To insert the background color for an entire page, insert┬ástyle=’background-color: color’ into the <body> tag as below.

<!DOCTYPE html>
<html>
<head lang='en'>
    <meta charset='UTF-8'>
    <title>HTML colors</title>
</head>
<body style='background-color: gray'>

<h4>My background color is gray</h4>

</body>
</html>

Series Navigation<< HTML: Colors
HTML: Adding a background picture >>