Yelotofu

Yelotofu ~ “In building standards compliant sites we are creating a better Web for the future.”

Archive for November, 2007

Semantic URLs gone bad!?!

Semantic URLs, also known as Friendly URLs, are human readable URLs that would otherwise be a list of query string parameters with meaningless ID's. Semantic URLs are a good thing but could it be too good to the point of turning bad?

I've been mulling over the use of Semantics in URLs for a while. How far could you go with the semantics until things turn upside down? Where does one strike the balance between Search Engines and Humans? Are we prone to a second wave of keyword stuffing? Search Engines love keywords but will website owners fall foul of keyword stuffing on the URL as was evident with the Keyword meta tag?

In a recent project I had the opportunity of voicing my opinion on the matter of URL structure. The website in context sells products with deep-linking categories of which some have multiple parent categories. I recommended the KISS (Keep It Simple, Stupid) approach, keeping URLs short and unique but the client was more concerned with SEO so wanted product URLs to have as much semantics as possible; if a particular category had multiple parents then all parent categories should display on the product URL to form a seemingly hierarchical structure. As you could imagine product URLs then start to look unwieldy. Take a look at this example URL structure:

/plants/_/shrubs/roses/shrub-rose/bush-rose/other-shrub-rose/rosa-queen-of-denmark/classid.77933/

What the heck is that? Is that still considered friendly? For starters it does not describe a proper hierarchy since "other-shrub-rose" is not a subcategory of "bush-rose" and "classid.77933" is not a subset of "rosa-queen-of-demark"; rather it's product id. The URL should really look more like this:

/plants/shrubs/roses/77933-Rosa-Queen-Of-Denmark

or even

/plants/77933-Rosa-Queen-Of-Demark

Showing all parent categories when there are multiple routes defeats the idea of hierarchy. On top of that the site does not always have a page for each category. Category names can also be displayed in any order within the URL resulting in multiple URLs point to the same product page. Hence hierarchy isn't even important though it's shown to be with the URL structure. The product URLs are now far from friendly, in fact they are: ugly, wordy, overly deep-linked and look very bad in print.

In conclusion. Does all this really matter? Do site visitors notice URLs in the first place? Do search engines check whether a site is stuffing URLs with keywords? Is serving identical content to multiple URLs detrimental to a site? I'm no SEO expert so I'm afraid these will remain as questions. One thing I am certain of however is that building an SEO friendly site is about creating quality content, concentrating on document quality, using semantic markup and delivering an accessible site. In the end, it's down to us as web professionals to make sure we do not take advantage of unset rules by exploiting what should be a good thing—Semantic URLs.

Further reading:

Rediscovering the button element

I recently came across an article on particletree.com about rediscovering the button element. This article takes you through an example of how the button element was used to deliver buttons that look exactly the same across all major browsers, including Safari 2. If you're still using the input element for buttons then I'd recommend reading this article. To say the least, the button element has better semantics and is just as well, if not better, supported by all major browsers!

BarCamp Hong Kong

BarCamp Hong Kong 2007The BarCamp tide has finally reached the shores of Hong Kong. The first ever BarCamp Hong Kong event will be held at, a no more fitting venue than, Yahoo!'s offices in Causeway bay on 15th December 2007.

See you there!

Dojo 1.0 Released!

Today marked the release of Dojo 1.0. A critical milestone in what must be one of the most powerful JavaScript toolkits out there to date. I'm especially excited with Dojo's Accessibility support and native 2D and 3D vector graphics engine.

Read the official Dojo 1.0 Press Release and check in on the latest about Dojo at dojotoolkit.org.