In: Computer Science
apply following to body of the page in css format
1. background color of rgb(145,215,170)
2. width to 65% of the page
3. center the body using the margin property
4. assign a font family of Georgia, Times, serif
NOTE:
1. To center the body use, margin : auto
2. Here I set the background of html to white to clearly differentiate the background color of the body.
HTML CODE:
<html>
<head>
<title>
Optional Title Section
</title>
</head>
<style type="text/css">
html
{
background-color:white;
}
body
{
background-color: rgb(145,215,170);
width:65%;
margin : auto;
font-family : Georgia,Times,serif;
}
</style>
<body>
This is the body of the page
</body>
</html>
Screenshot: