Example: use of CSS to set the background color
<html>
<head>
<style type="text/css">
body
{background-color:yellow;
}
h1
{background-color:#00ff00;
}
p
{background-color:rgb(255,0,255);
}
</style>
</head>
<body>
<h1>This is heading 1</h1>
<p>This is a paragraph.</p>
</body>
</html>
No comments:
Post a Comment