h1 color: maroon; : Header color « Tags « HTML / CSS






h1 color: maroon;

   

<!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' xml:lang='en'>
    <head>
        <meta http-equiv='Content-Type' content='text/html; charset=UTF-8' />
        <title>Selectors and Grouping</title>
        <style type='text/css'>
            h1, h2, h3, h4, h5, h6 {
                font-family: sans-serif;
                color: maroon;
                border-bottom: 1px solid rgb(200, 200, 200);
            }
        </style>
    </head>
    <body>
        <h1>H1</h1>
        <h2>H2</h2>
        <h3>H3</h3>
        <h4>H4</h4>
        <h5>H5</h5>
        <h6>H6</h6>
    </body>
</html>

   
    
    
  








Related examples in the same category

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