Adding Background color to Headings | using CSS



 To add a background color to any element including heading use the background-color property.

<html>
 <h1>My heading</h1>
</html>

CSS will look like this
<style>
  h1{ background-color:blue;}
</style>

Comments

Check out

CSS Sprites | What are They?

Login form | Using CSS3

Remove Scrollbars from syntaxhighlighter

Adding a button in HTML | styling a button

HTML5 Semantic Tags | What do they mean

How to remove plus and minus characters from input type number

HTML5 | LocalStorage

How CSS3 Works

jQuery Resources | Support and tutorial help