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

Popular posts from this blog

How CSS3 Works