5. Clean up your code
Search engines like clean code: code that is minimal, and accomplishes the simple purpose of presenting the content to the user. In other words, you want a high text-to-HTML ratio. This will come naturally if you have separated your markup from your presentation using style sheets, but you can probably do even more. Avoid tag soup and “div-itis”, and include scripts, stylesheets, and other site elements externally, rather than inline.
Currently, some search engines are marking off for bad code, and I expect this trend to continue in the future. Also, go ahead and validate your site against an HTML DOCTYPE; make sure to choose the right DOCTYPE, too.
Things like formatting are inconsequential, so you don’t need to go through and indent your pages. Just make sure that elements are correctly nested and that HTML is valid against the DOCTYPE you chose. The W3C validation tools are quite useful:
4. Set up clean URLs
This is minor, but it can help. Most content management systems will allow you to do this automatically, and it’s not too hard to do it yourself using Apache’s mod_rewrite if you already have “bad” URLs set up that you don’t want to mess with.
Essentially, the idea is to have URLs that include the keywords you’ve chosen to promote for your page and site (you have chosen keywords, haven’t you?). For example, this page has “seo” and “search engine rankings” in the URL (/blog/archive/lazy-mans-seo-5-easy-ways-to-improve-search-engine-rankings/). Search engines prefer that form to /blog.php?page=400243. It’s also good for visitors, as they’ll have an idea of what the page is about, just by looking at the URL.
By the way, some CMSs use an underscore to separate words. Google (and other search engines, I presume) prefers the use of a dash instead, so if you have the option to switch, do so.
Granted, this isn’t going to make you #1 in the results pages, but it does help.
3. Use semantic document outlining
The original purpose of the Web was to help transmit ideas through documents. As such, HTML gives you pretty good options for semantic outlining of your documents. The most important of these are the header tags. Specifically, <h1>, <h2>, and <h3> have the greatest weight for search engines. The <strong> and <em> tags are also good (but don’t overuse them, as it gets hard to read).
How does it help? Text within an h1 tag, for example, will be emphasized to a search engine as important, relative to the rest of the page. Placing keywords in that text will help “rank” those keywords highly when the page is indexed, so make them relevant.
2. Make a complete sitemap
Sitemaps are a very useful area of your site, both for search engines and for users as well, for the same reasons: sitemaps provide a structure to otherwise non-linear websites, and will help the deeper, meatier webpages show their stuff.
Aside from a standard sitemap web page, you should also create a Google Sitemap. While your ranking isn’t automatically increased just because you have one, it does help to make sure more of your content is indexed. You can automatically generate a sitemap by doing a quick Google search, but one of the better tools I’ve found is from Enarion.
1. Create powerful titles for each page
The <title> element is your best friend in SEO, so make sure it has your keywords in it at least once. Try to find a balance between readability and keyword usage; if in doubt, err to the side of readability.
You have around 60-70 characters that will really be counted and displayed in search engine results, so take that into account. Don’t try to force your company name or the current section into the title, as it will dilute the potency of the keywords that are specific to that page. Here are the exceptions: if it’s the home page (then, obviously, you should put the company name), if your company name is short, or a keyword is part of the section name.
You don’t have to repeat your keywords in the title, but it’s a nice little extra if you can do it without making the wording sound stilted or stupid. Once again, err on the side of human readability. Rememer, just because you’re at the top of the search engine results doesn’t mean somebody will click on your link, especially if the page title sounds dumb.
One more thing: try to keep it alphanumeric. Diamonds, colons, spades, or extraneous marks detract from: 1. the number of characters that your keywords have to fit into, and 2. the professionalism and credibility of the page. Keep it simple. Use a pipe (|) or dash to separate phrases or sections in your title, if you even need a separator at all.
To summarize…
- Use as few HTML tags as possible
- Include stylesheets/scripts with the link tag
- Put keywords in your URLs, and use a dash to separate words
- Put keywords in headers, strong, and em tags
- Make both a regular and a Google sitemap (Yahoo and MSN also support the same spec now)
- Titles should be meaningful and to the point