Inline style for header : Header « Tags « HTML / CSS






Inline style for header

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
     <head>
      <meta http-equiv="content-type" content="text/xhtml; charset=windows-1252" />
      <meta http-equiv="content-language" content="en-us" />
        <title>Selectors and Grouping</title>
     </head>
     <body>
        <h1 style="color: black; border: 5px solid black; letter-spacing: 5px; padding: 10px;">
            Heading 1
        </h1>
        <h2 style="color: orange; border: 4px solid orange; letter-spacing: 5px; padding: 10px;">
            Heading 2
        </h2>
        <h3 style="color: blue; border: 3px solid blue; letter-spacing: 5px; padding: 10px;">
            Heading 3
        </h3>
        <p style="font-family: Arial; font-size: 14pt;">
            Selectors choose the element to apply formatting to.  These may also be 
            grouped together.
        </p>
    </body>
</html>

 








Related examples in the same category

1.Headings
2.Inline style for header 3
3.Header font setting
4.Heading with background
5.header with absolute position
6.Header text alignment: center
7.Set font size for

8.header 2 background image setting
9.Set font size to 1em
10.Hide
in
11.Use
12.Set

in header

13.Set

in header section

14.Heading with margin
15.Use bold font to highlight heading
16.Adding top and bottom margin for heading
17.Set font for header 1
18.Background with bottom border
19.Border for header
20.

overflow hidden

21.Add the Left Margin
22.Header content section
23.Header, image and content
24.h1 padding: 10px
25.News Header style
26.A fixed header
27.Adding links in to the header
28.Letter Spacing in Headlines