Set the background color for the page to "linen" and the background color for <h1> to "pink". - HTML CSS CSS

HTML CSS examples for CSS:Quiz

Description

Set the background color for the page to "linen" and the background color for <h1> to "pink".

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<head>
<style>
body {<!-- www. j av  a 2s .  c om-->
    background-color: linen;
}
h1 {
    background-color: pink;
}
</style>
</head>
<body>

<h1>This is a Heading</h1>
<p>This is a paragraph.</p>
<p>This is another paragraph.</p>

</body>
</html>

Related Tutorials