Heading color : Header color « Tags « HTML / CSS






Heading color

  

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
  <head>
    <title>Chapter 2</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <style>
body {
  font: 1em Verdana, Geneva, Arial, Helvetica, sans-serif;
}
h1 {
  background-color: #ADD8E6;
  color: #256579;
  font: 1.5em Verdana, Geneva, Arial, Helvetica, sans-serif;
  padding: 0.2em;
}    
    </style>
  </head>
  <body>
    <h1>Heading</h1>
    <p>.</p>
  </body>
</html>

   
    
  








Related examples in the same category

1.h1 color: maroon;
2.h2 color: maroon;
3.h3 color: maroon;
4.h4 color: maroon;
5.h5 color: maroon;
6.h6 color: maroon;
7.H1 color: #140A00;
8.H1 color: #acaf2c;
9.h1 color: #4B2207;
10.h1 color: #000066;
11.h2 color: #000066;
12.h2 color: #BA3F2F;
13.h2 color: #833B0B;
14.h1.blurredColor { text-shadow: 3px 3px 5px red;}