Tunnel 7 is dedicated to providing clients with simple, effective, standards based websites utilizing forward thinking XHTML and Cascading Style Sheets (CSS).

tree

Blog

Hyphens or Underscores?

Published on Mar 24, 2009

One of the things I do on an ongoing basis is to read books, blogs, magazines ... really anything I can get my hands of to stay on top of current website design trends.  This past week I read an excellent book by Aaron Walter titled, Building Findable Websites.  And I wanted to share with you a little tidbit I learned from this book.

Use hypens, not underscores in your website addresses

I will admit (though I’m somewhat embarrassed to do so) that I didn’t realize what a difference hyphens made in the eyes of search engines.  Consider the following:

Example 1: http://www.domain.com/look_how_smart_i_am

Example 2: http://www.domain.com/look-how-smart-i-am

Now to you (and to me until last week) these two website addresses looked pretty much the same.  In fact in my mind it really came down to a matter of style.  However, that is not the case.  Here is how search engines see the directory path for these two examples:

Example 1: lookhowsmartiam

Example 2: look how smart i am

Now that’s a big difference (and certainly not a matter of style).  Example one translates to jibberish while example two offers unique keywords to be indexed by search engines and a clear benefit in search engine rankings.  Example one is the winner here and going forward I will be using the hyphen instead of the underscore. 

Is it a subtle difference?  It sure is but now that you know why would you ever go back to the underscore?

Subscribe

You can have new blog posts delivered to you as soon as they're published simply by subscribing to the RSS Feed below!

rss icon Subscribe to RSS Feed | What is RSS?

Follow Me!

In addition to this website you can also follow me on these social media websites:

  • follow derek allard on twitter
  • follow derek allard on linkedin
  • follow derek allard on facebook

Why Web Standards?

Simple visual consistency

Because content and style are separated a style change made in one location affects content across the entire site.

Better search engine results

With the code being much more compact, search engines can easily read content and will display better results for you.

Website maintenance less expensive

With visual appearance controlled by a single file maintenance becomes a breeze. No more changing dozens of individual pages.

Accessibility to all devices

Cell phones, pdas, screen readers — a standards based website will render better in these than a traditional tables based website.

Recent Projects

usehazus

lamcotec

in pursuit of giants

giving nature center

View portfolio