HTML 4.01 defines 6 levels of headings: <h1> - <h6>. These headings are hierarchical in nature, indicating the importance of their content from most important to least. It is a matter of best practice to label the title of each page with the <h1> tag.
Semantically, it is important the <h1> tag identify the core essense of the subject page. Such practice is also beneficial to the accessibility and search ranking of your site.
Yet in practice, many web designers consistently wrap the site identification (i.e. company name or website name) in the <h1> tag, leaving the remainder of the content to share the <h2> - <h6> tags. Now, it is completely appropriate to wrap the site identification in a <h1> tag on the homepage, but this practice should be resisted on subpages. But out of laziness, this is often done.
Let’s remove excuse for the lazy, and provide code to properly use the <h1> tag.
The following HTML and PHP code provides the logic to wrap the site identification in a <h1> tag on the home page, and in a simple <div> tag on the remainder of pages:
<?php
function isHomePage() {
if( ($_SERVER["REQUEST_URI"] == "/") || (substr($_SERVER["REQUEST_URI"], 0, 7) == "/index.") {
return TRUE;
}
return FALSE;
}
?>
<?php if( isHomePage() ) { ?>
<h1 id="siteID">Company Name</h1>
<?php } else { ?>
<div id="siteID">
<a href="/">Company Name</a>
</div>
<?php } ?>
Of course, some content management systems have built in functions that do the job of isHomePage(). For example, with WordPress you can use is_page('Home').
The following is an example of CSS for styling your <h1> and site identification:
h1 {
clear: both;
margin: 36px 0 18px;
font: 54px/54px "Palatino Linotype", serif;
text-align: left;
color: #333;
text-shadow: #ccc 3px 3px 3px;
text-transform: capitalize;
}
h1#siteID, div#siteID {
clear: both;
float: left;
height: 90px;
width: 400px;
margin: 0;
padding: 0;
text-indent: -9999px;
background: url('images/logo.png') no-repeat;
}
With this handling of the site identification, you are now free to identify the title of each subordinate page as <h1>.

