How to Set Title and Paragraph Background Color as White

CSS/HTML: Background Color Property

The below example written in CSS/HTML is to set the Background Color as White for both HTML Header tags and HTML Paragraph Tags. In this CSS stylesheet example the RGB function is employed to set the HTML Body tag of the Web page

Set Title and Paragraph Background as White

<html>
<head>
<title>CSS Background Color Property</title>
<style>
body {
background-color: rgb(40%, 50%, 85%);
}

h1 {
background-color: white;
}

p {
font-size: 1.4em;
background-color: white;
}
</style>
</head>
<body>
<h1>Background Color Transparency</h1>
<p>Default value is <b>Transparent</b><br />
However You can Set Any Color Background</p>

</body>
</html>


Related Topic HTML Markup CSS ID, Class and Type Selectors
CSS: How to Set Background Color for First Letter
What is CSS WindowInfoBackground Color
CSS Stylesheet Example for Different HTML Building Blocks
CSS: Divide Web Page by Background Color Setup
CSS  web design  HTML  div  

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback