Background Color

Example Code


<!-- Codes by HTMLmagics -->
<p style="background-color:Black">The color of this paragraph is: <b>Black</b>.</p>
<p>The background color of this text is inherited from its containing block, but <span style="background-color:Black">the background color of this 'span' tag has been changed to <b>Black</b></span>. </p>
<div style="background-color:Black;width:150px;">The background color of this 'div' tag is <b>Black</b>. </div>
<p><a  style="font-size:11px;color:#999;" href="http://www.htmlmagics.blogspot.com/color/html-color-code-generator.cfm">HTML Color Generator</a></p>

Result





The color of this paragraph is: Black.

The background color of this text is inherited from its containing block, but the background color of this 'span' tag has been changed to Black.

The background color of this 'div' tag is Black.

HTML Color Generator