Optimize your HTML for Search Engines
SEO can be broken into two distinct areas — “onpage” factors and “off-page” factors. On-page factors include anything that you can affect on the page itself, such as the title tag, body copy, H1 heading tags, image “alt” attributes, etc.
Off-page factors encompass things that influence rankings but are not on the page itself, such as PageRank score and anchor text, better known by the layman as link text. When you are optimizing the on-page factors, you start with keyword research to identify the keyword markets that you should go after (as discussed in my “Keyword Sleuthing” article in the November issue). You craft prose targeted at those keyword markets (see my “Writing for the Search Engines” article in the December issue).
Keyword-rich prose isn’t enough though. In order to give your content its best shot at ‘singing’ to the search engines, you’ll need to optimize your HTML templates. Of course this all presumes that your ecommerce platform is friendly to search engine spiders (my “Avoid Complex URLs” article in last month’s issue). Here’s a quick guide on how to optimize your HTML, step-by-step:
Make sure each page can sing a unique song
The worst kinds of HTML templates have title tags and Meta data (such as the meta description) hard-coded so that they are the same across all pages that use that template. Make sure that your title tag, Meta description and H1 heading tag can be assigned on a per page basis, thus unique to the specific page in question.
Strip out extraneous HTML code
Superfluous code in your HTML negatively impacts your search engine rankings by pushing your good keyword rich copy further down the page thus lowering keyword prominence. Because the search engine spider looks at the HTML code rather than the rendered page as you see it in your web browser, elements in the HTML code that bloat the page up may lower your page’s keyword prominence. In addition, this “bloat” will negatively impact the user experience as it increases download time. As you know, Internet users are notoriously impatient.
Amplify the song that your content sings
Your content, when merged in with your HTML template, is what is served to the search engine spider. Your HTML template can squelch that song or it can amplify it. Above, we have already talked about ways that your HTML code can squelch the song. Now in order to amplify it, make sure that you include heading tags on your pages and utilize text navigation whenever possible instead of graphical navigation. For example, clickable buttons can be done as text but made to look graphical. Text links are much more effective than graphical links because the search engines take the anchor text that you have used and associate the words in the anchor text with the page that you are linking to. You will get a lift in your rankings for the keywords contained within those text links.
Not to worry
The Meta keywords tag doesn’t have much of a place nowadays in SEO, so you can safely leave them out of your HTML templates (unless your own site’s search engine uses them). A Meta robots tag with instructions to index and follow is unnecessary, as that is assumed, so leave that out as well. Image “alt” attributes used to be a lot more important than they are now. It seems nowadays that only when the image is also a link that the “alt” attribute is actually paid any attention to by the search engine. Taking all the above into account, you should end up with HTML templates that really enhance your search engine positions across all pages to which they are applied.
This article appeared in the February 2006 issue of Practical Ecommerce magazine.
From the fundamentals of link building to the nuances of natural linking patterns, virality, and authority.
Thursday Three: Embrace Journaling, Tackle Tardiness, and Explore Our Energetic Echo
Here’s what I found inspirational, challenging, or just downright hilarious this week. What caught your eye? And, remember to check out this week’s great podcast episodes: Scaling a SaaS Company with Jason Morehouse “A crucial factor to business success is to find and take the personal path that works best for you.” — Jason Morehouse […]Read More
Thursday Three: Harrison’s harmony, conquering a blank canvas, & gut health hacks
Here’s what I found inspirational, challenging, or just downright hilarious this week. What caught your eye? And, remember to check out this week’s great podcast episodes: Be a Sales Game Changer with Fred Diamond “True elite sales professionals develop a dedicated mindset, proactive client interaction, and continuous self-preparation. They understand their client’s needs and enable […]Read More
Thursday Three: Rebirth of sleeper trains, 4,000 weeks is a long/short time, and golden age for medicine
Here’s what I found inspirational, challenging, or just downright hilarious this week. What caught your eye? And, remember to check out this week’s great podcast episodes: A Story Worth Retelling with Luke Storey “Aligned values are the cornerstone of successful partnerships, whether in business or life, as they shape our moral code, define our priorities, […]Read More