TRIF3CTA Interactive Marketing

Need web help? Hire TRIF3CTA. Subscribe
home / blog / entry

Not just semantics: SEO-friendly page headings

page headings for SEO

Many search engine optimizers believe that page headings (h1 – h6) are an important on-page factor for search engine rankings. While not nearly as crucial a page's title element, page headings likely play a minor role in search engine rankings. More importantly, page headings help provide organization and structure to your document, which has long been on the minds of web-standards types. Here's one approach to coding your site's logo.

The "official" stance on page headings

From the W3C itself:

"h1 is the HTML element for the first-level heading of a document:

  • If the document is basically stand-alone, for example Things to See and Do in Geneva, the top-level heading is probably the same as the title.
  • If it is part of a collection, for example a section on Dogs in a collection of pages about pets, then the top level heading should assume a certain amount of context; just write Dogs while the title should work in any context: Dogs - Your Guide to Pets."

The Web Design Group states:

"A document generally should have exactly one h1 element to mark the most important heading."

Another interesting thing to point out (from the W3C again):

Some people consider skipping heading levels to be bad practice. They accept H1 H2 H1 while they do not accept H1 H3 H1 since the heading level H2 is skipped.

Alright, so we should use the h1 element to mark the most important heading, and try to use only one. As for order, I slightly disagree. We are assigning relative importance, not taking notes.

The SEO view

A survey of top SEO experts conducted by SEOmoz placed Keywords in H1 Tag as the fourth most important factor in the under Keyword Use Factors.

How much it effects rankings is certainly up to debate, but the general sense is that it probably helps. Couple this with the fact that it falls in line with best coding practices and it's worth doing.

In practice

Example: Marking up a logo image

Here's an example of how to code a logo using the Phark Method of CSS Image Replacement.

The HTML

<h1 id="logo">
<a href="http://example.com" title="Company Name/Short Tagline">Your Company/Short Tagline</a>
</h1>

Above we have the logo as an h1 that links to the homepage. We assign it an ID to set-up some CSS trickery. Tip: Use the the title attribute in all of your links.

The CSS

#logo {
	background: transparent url(../img/your-company-name.jpg) no-repeat scroll 0% 0%;
	width: 250px;
	height: 150px;
	text-indent: -3333px;
	border: 0;
	margin: 0;
	}

We send in the logo as a background image, and push the HTML text off the page using a negative text-indent. Be sure to include the dimensions so you can see the entire image. Use a descriptive file name – search engines are file name aware, it's good for image searches, and it can aid in accessibility. Think about how many files are named "logo.jpg" versus "your-company-logo.jpg."

#logo a {
	display: block;
	width: 280px;
	height: 200px;
	text-decoration: none;
	border: 0;
	}

Then we style the image link. Make it a block level element so you can assign dimensions to be clickable (I make mine a little bigger than the image, but it's probably better to mirror the image size if you're working in tight quarters). Remove any link styling such as borders or underlining you may have set on your anchors elsewhere in the stylesheet.

In Summary

Pay attention to your page headings and document structure. Also, be sure to using coding practices that allow for key text to be in the markup where the search engines can gobble it up.

Further Reading

Tags: web standards, css, page headings, html

About the author
Judd Lyon

Judd Lyon is the Principal of TRIF3CTA, a web design and Internet marketing company in Austin, Texas.

LinkedIn: Judd Lyon | Twitter: @TRIF3CTA

Comments

There are no comments for this entry.


Leave a comment

The TRIF3CTA Blog is a collection of web design and Internet marketing hacks ideas.

TRIF3CTA is an online marketing company based in Austin, Texas. Learn more &rarr

Twitter: @trif3cta

“Page Load Speed to Affect Organic SEO? I hope so! Via BuzzStream: http://bit.ly/AqNKJ”

“1 line CSS grid framework: http://tr.im/nsjw”

“jQuery Tools just came out! 5.8K and includes all the interface stuff most of us need. YES! (* in Marv Albert voice *) http://tr.im/nr5D”

“Google Local Lures Small Businesses With Their Own Web Dashboard http://tcrn.ch/2y5 by @erickschonfeld”

“Drag 'n drop product comparison with jQuery: http://tr.im/ndgS”

“@robertbanh - I don't think so, it needs to know when the scrollbar should kick in. You might try a JS solution like this (jScrollPane): ...”

“Do small businesses really need a website? A contrarian view: http://tr.im/naPk”

“I can't name three better web dev blogs than Perishable Press: http://perishablepress.com/”

“RT @jdeeringdavis' 1st seller interview on the @cheaptweet blog. http://budurl.com/ctitc - these will be fun”

“Checkout Inspiration From Top Converting Sites http://bit.ly/G2xum”

“Top Ten Myths About Google Analytics http://bit.ly/V6nOS”

“Setting up custom URL structures in ExpressionEngine, via 47Media by way of EEInsider http://bit.ly/uEZ3f”

“looking at PhoneGap, an easier way to dev mobile apps: http://bit.ly/eO4W”

“Don't feel bad about your typos, one of these cost a firm $224M: http://bit.ly/Wv6C1”

“RT @tweetmeme How Google detects paid links in websites | SeoUnique Blog http://bit.ly/HvpUT”

“checking out the Evolution of Cell Phone Design http://bit.ly/5t2eH”

“slick ExpressionEngine excerpts courtesy of Ryan Masuga: http://bit.ly/anNPT”

“a great discussion about ampersand (&) usage: http://typophile.com/node/12426”

Powered by ExpressionEngine Clicky Web Analytics
List once, be found everywhere
Trifecta Interactive Marketing, LLC
1712 E Riverside Dr, Ste 63
Austin, TX, 78741