h2 color: #000066; : Header color « Tags « HTML / CSS






h2 color: #000066;

   

<?xml version="1.0" encoding="iso-8859-1"?>
<!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">
  <head>
    <title>Title</title>
<style type='text/css'>
body {
  background-color: #000000;
  font-family: arial, verdana, sans-serif;
}

div.page {
  width: 650px;
  border-style: solid;
  border-width: 1px;
  border-color: #666666;
}

div.heading {
  background-color: #999999;
  padding: 10px;
}

div.body {
  background-color: #EFEFEF;
  padding: 10px;
}

h1 {
  font-size: 22pt;
  color: #000066;
}

h2 {
  font-size: 18pt;
  color: #000066;
}

p {
  font-size: 14pt;
  color: #000000;
}
</style>


    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  </head>
  </head>
  <body>
    <div class="page">
      <div class="heading">
            <h1>Header</h1>
      </div>
      <div class="body">
            <h2>Abstract</h2>
            <p>This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. 
            This is a test. </p>
            <p>This is a test. This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. This is a test. 
            This is a test. This is a test. This is a test. This is a test. 
            </p>
          ...
      </div>
    </div>
  </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: #BA3F2F;
12.h2 color: #833B0B;
13.h1.blurredColor { text-shadow: 3px 3px 5px red;}
14.Heading color