Use
to mark header : Header « Tags « HTML / CSS






Use

to mark header

 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title></title>
<style type="text/css">



div#header{
  position:relative;
  background-image: url(r.gif);
  background-repeat: no-repeat;
  background-position: 10px 0px;
  
  }
</style>
</head>
<body>
<div id="container">
  <div id="header">
    <h1>My Amazing Web Site </h1>
  </div>
  <div id="wrapper">
    <div id="content">
      <h2>Contact Form</h2>
      <form id="form1" name="form1" method="post" action="/">
    
      <label for="fmtitle" accesskey="i">T<span class="akey">i</span>tle</label>
      <select name="fmtitle" id="fmtitle">
      <option value="ms">Ms.</option>
      <option value="mrs">Mrs.</option>
      <option value="miss">Miss</option>
      <option value="mr">Mr.</option>
        </select>


        <label for="fmname" accesskey="n"><span class="akey">N</span>ame</label>
        <input type="text" name="fmname" id="fmname" />
    
        <label for="fmemail" accesskey="e"><span class="akey">E</span>mail</label>
        <input type="text"  name="fmemail" id="fmemail" />
    
        <label for="fmstate" accesskey="a">St<span class="akey">a</span>te/Province</label>
        <input type="text" name="fmstate" id="fmstate" />
    
        <label for="fmstate" accesskey="y">Countr<span class="akey">y</span></label>
        <input type="text" name="fmcountry" id="fmcountry" />
    
        <label for="fmmsg"><span class="akey">M</span>essage</label>
        <textarea name="fmmsg" accesskey="m" id="fmmsg" rows="5" cols="14"></textarea>
    
        <input type="submit" name="submit" value="send" class="submit" />
      </form>
    </div>
  </div>
  <div id="extra">
    <h2>quid pro quo</h2>
  </div>
  <div id="footer">
    <p>ask.</p>
  </div>
</div>
</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.Set

in header

12.Set

in header section

13.Heading with margin
14.Use bold font to highlight heading
15.Adding top and bottom margin for heading
16.Set font for header 1
17.Background with bottom border
18.Border for header
19.Inline style 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