Ads

google-baby.jpg

Google baby by skoop.

As most of us know it is often really difficult to build websites for both the user and Google.

Google still needs to be assisted in finding and assessing a website’s worth to such an extent that it can break the user experience altogether.

Of course there are plenty of CSS solutions for Google’s weaknesses. Although I do not like the term tricks I have to refer to them as CSS tricks as in fact these are workarounds to suit Google. Google spiders are still unable to recognize most advanced web technologies like Flash or AJAX.

Google spiders are like little children, you really have to assist them to find stuff and understand it.

There are other search engines of course but they struggle even more so to keep it simple I will concentrate on Google, which is the by far dominant search engine in most of the western markets.

On a side note: “Trick” sounds like “black hat SEO” or cheating search engines. Well, take a look at them yourself and tell me whether I’m cheating or whether Google is making web development a pain in the back.

OK, then. Let me present to the top 7 CSS tricks for better SEO in no particular order:


CSS Pagination
Google has a serious problem with ranking long articles which are divided into several parts. Also long one page articles will outrank short ones usually. Apart from that the usability is key in making your visitors read the whole article so you don’t want users neither to scroll for ages nor to click a link and send a request each time they want to get to the next page of your article.
The solution is CSS pagination. Isn’t it hidden text though? Hidden text is one of the oldest “tricks” to cheat search engines, webmasters still employ it and my potential clients sometimes wonder why they don’t rank while using hidden text. So hands off hidden text! Well, if Digg, your number one anti-SEO site, uses it can it be “black hat SEO”?
Anyways this way you can divide the content into easily digestible parts while still having it on one page. Take heed to another limitation of Google: The crawler might not crawl a very large page in its entirety.

Absolute Positioning
The higher your content is on a given page the more it counts for Google. Google does not see a page like a human being, it crawls the code. Thus the higher your content is in the code the better. So if you have a complex site with lots of menus, scripts and other gimmicks you should consider absolute positioning otherwise Google might even stop crawling your page before it reaches the main content. You can place the actual content high up in the code, at the top, while the users will see it in the middle of the page below the menus.

Styling h1, h2, h* Headlines
In HTML the h1 headline appears huge by default, the h2 is still much larger than the rest of the page copy etc. Many web designers thus used divs and spans for headlines for years to style them the way needed. Now Google won’t know what the headline is unless you tell Google by using h* tags. It’s like in 1999: You really need to use h1, h2 etc.
Of course you don’t have to make huge h1 headlines like in pre CSS times. Just style the h1 the size you want, also you can get rid off the line-height etc. which h1 headline force upon you by using the display: inline; attribute.

sIfr/Image Replacement for Headlines
Many people will argue that styling headlines with CSS is not enough for web designers. They are in fact right. I think it’s by now grotesque that we’re in 2008 and we still are limited to less than a dozen basic standard “web safe” fonts for web design. We were meant to have flying cars by 2000 and now we do not even have real typography on the web. Many people have tackled this problem with image replacement techniques for headlines, which in short will hide the original headline and insert an image in it’s place. Some of them are fairlydavnaced , others are very simple. No isn’t it hidden text again? Yes, it is! Also some of these methods will hamper your SEO efforts moredfirectly as the crawlers won’t recognize the headline anymore.
There is one popular image replace technique called sIfr which is by now officially approved by Google. It uses Flash to display the headline in any font you wish but in code the h* tags are still recognizable.

Using Lists (ul/ol)
Most SEO experts agree by now that so called keyword density is not a major positive ranking factor. It means that mentioning your keywords 20 times instead of 5 will not make you rank better in Google. You may get penalized for so called keyword stuffing though. Now what to do in case where you really need to use the same words over and over? Use an unordered or ordered list. Google allows repetition in lists without penalizing you.
With CSS you can style lists in any way you desire so that if you do not want a list to be clearly visible list style it accordingly. Some people do even a whole site design without tables and layers (divs) or even spans.

Nofollow Attribute
Contrary to what some people believe the nofollow attribute like in a href=”page.html” rel=”nofollow” does not prevent a page from being crawled by Google. As nofollow does not help against Spam whatsoever, as it was its original purpose at which it failed completely, what then is nofollow good for from the webmaster perspective?

Matt Cutts of Google recommends the so called pagerank sculpting. It means assigning PageRank to the important pages while not wasting it on a contact page for instance.

Yes, Google assumes that the page with the most internal links is the most important one so if you link from all your pages to the contact page it will be the most important page for Google. So you really have to tell Google: Do not mistake this page for the most important one by using the nofollow attribute (not tag!) on the links leading to the contact page.

Pure CSS Menus
While pure CSS menues are not really a trick most people still assume that you need JavaScript or other enhancements to make dynamic menus. Well it’s not true, many advanced CSS only menus offer slick interactivity while being the best choice for Google and other search engine spiders.


Now can you use this methods for cheating Google? Well, I guess you can, but these techniques are so low level that Google won’t count it anyway. For all those who mistake SEO with spam: Spam works on a whole different level nowadays so using stuff like hidden text is ridiculous by now. These CSS tricks can help you with legitimate SEO efforts. I do not like the term white hat SEO as it acknowledges that there is another kind of SEO (I don’t agree with that premise, I rather divide: Either it’s SEO or it’s spam). Nonetheless: It’s all white hat SEO if you ask me.

Now you might argue this is not SEO 2.0, these are SEO basics known for years but it’s not really the case, the web developer community is rather keen on web standards to the point of dogma where for instance absolute positioning is frowned upon. So most people won’t use it. Also if you want to learn more about advanced SEO 2.0 methods you might want to read more in this blog. It’s full of SEO 2.0.

del.icio.us StumbleUpon Facebook Google Mixx Sphinn TwitThis
April, 2008 | You can follow comments through the RSS 2.0 feed. You can leave a comment, or trackback.

This thing has 19 Comments

  1. Posted April 25, 2008 at 2:56 pm | Permalink

    Unfortunately, neither of pure CSS menus work in IE6.

  2. Posted April 25, 2008 at 3:01 pm | Permalink

    Well, Sasa, you might want to check out this older post:
    http://seo2.0.onreact.com/top-7-ways-to-crash-internet-explorer

    IE6 will wither eventually.

  3. Posted April 25, 2008 at 3:02 pm | Permalink

    nice roundup…

    @sasa - it does, but not the complex one … but if you have simple pure css menu it works fine in any browser…

  4. Posted April 25, 2008 at 5:02 pm | Permalink

    I really don’t understand why google like to change their policy time to time.For eg: i just learn about how to input your keywords ,then now google said keyword is no longer an important element to get high rank..then what is next??We have to update every single day about google news??

  5. Posted April 25, 2008 at 6:55 pm | Permalink

    Good article, but come on. It’s not as simple as “SEO or spam”. Heck, the search engines can’t even agree and what is considered “spam”.

  6. Posted April 25, 2008 at 11:10 pm | Permalink

    Sometimes it is nice just to be reminded of the basics. I make list when auditing a site and go over that check list. These are good tips for CSS. I haven’t found a good css menu that works without javascript. It is the cross browser compatibility issues.

  7. Posted April 26, 2008 at 8:18 pm | Permalink

    Great tips, Tad. I haven’t seen all of them before, so very happy to have learned something new.

    This reminds me of a question that is related to this subject. Is using negative margins to move h1’s off the visible page so you have an image header instead considered hidden text? Would that anger the mighty Google gods?

  8. Posted April 27, 2008 at 12:05 am | Permalink

    Great tips. Many of them were new to me. Just wanted to say thanks.

  9. Posted April 28, 2008 at 3:56 am | Permalink

    I’m going to show this to my friends in the [online] newspaper business, for the pagination tip specifically. Great post Tad!

  10. Posted April 28, 2008 at 8:09 am | Permalink

    Great tips..
    but i can’t stand the first tip”CSS Pagination”, is it hidden text?
    if it is , it can do better for SEO?

  11. Posted April 28, 2008 at 9:27 pm | Permalink

    heh, fun to find my son here. It’s good that a friend of mine noticed this and let me know about it. :)

  12. Posted April 29, 2008 at 9:27 am | Permalink

    I truly don’t understand your view on absolute positioning. How can you position something absolute for Google without your visitors seeing it. This means positioning it outside the viewing window. Not advisable.
    Also the image replacement technique is not hidden text when done properly.

  13. Posted April 29, 2008 at 3:02 pm | Permalink

    @Bruyns, that’s not what he’s saying — he means using absolute positioning to put a big rambling intriduction visually at the bottom of your page (so that the user doesn’t get bothered by it) but reader-wise first thing in the markup. Common trick.

    @Tadeusz, what I don’t understand is your paragraph on pagination. What is the effect of pagination on SEO? Good or bad? For my part I find pagination to be a usability infuriation, and a relic to physical source reading psychology.

  14. Posted April 29, 2008 at 3:25 pm | Permalink

    Bruyns: Sorry, but that’s a stupid question. You don’t have to ask stupid questions to get a link here. Example: position: absolute; top: 0; left: 0; starts at the left top corner of the browser window. Now put the the div code on the bottom of your page and it still be dipslayed on top.

    Barney: Basically it depends. It can be both good and bad. In any case CSS pagination can help fix that. Google prefers long pages full of content but sometimes long pages won’t be crawled to the end. So a well linked (with many backlinks) one page resource will rank higher while a paragraph at the bottom of page with no external links won’t show up in the index at all probably. Also there are some other concerns, foremost usability. So you can split up a page and have it on one page at the same time.

  15. Posted May 16, 2008 at 12:19 am | Permalink

    Hi Tad!
    I have read a couple of your articles/posts and I really like the way you present the stuff :-)

    You are now officially bookmarked :-)
    Best regards, Trond

  16. Posted June 4, 2008 at 1:02 am | Permalink

    Love the CSS tips - such a clear explanation - thank you! I am loving your other posts too. Best blog I’ve found in a while.

    I too hate IE6 - may this flaccid useless tool wither quickly out of existence and forever be abandoned by Internet users worldwide.

    Cheers,

    Lorna Li

  17. Posted July 17, 2008 at 8:24 am | Permalink

    Nice tips Tad, and even more nice to see that i can read them for free. Keep up the good work buddy, im definatly bookmarking this site as it seems theres a fair bit i can learn from you.
    Cheers.

  18. Posted October 9, 2008 at 7:05 am | Permalink

    Great post for seo tips and trend to promotion your sites and blogs.

  19. Posted November 6, 2008 at 11:12 pm | Permalink

    The problem with normal pagination is usually getting the meta descriptions different on each page to avoid duplicate content problems (try writing something in PHP for wordpress to give youself a metadescription on each page and then work out how to make it different on each page of the loop …) although as you largely don’t bother with meta descriptions, maybe you don’t see it as an issue!

This thing has 7 Trackbacks

  1. Posted April 25, 2008 at 3:39 pm | Permalink

    […] 7 consejos de como trabajar con CSS para mejorar el SEO de nuestro sitio. 0 # […]

  2. Posted April 25, 2008 at 3:42 pm | Permalink

    […] Семь приёмов для начинающего SEO-шника. Как мне кажется - они, в большинстве случаев, обязательны для реализации. Вольный перевод статьи от SEO2.0 […]

  3. Posted April 25, 2008 at 7:29 pm | Permalink

    […] seo2.0.onreact.com […]

  4. Posted April 26, 2008 at 3:47 am | Permalink

    […] In this article you will find the “top 7 CSS Tricks for Better SEO”. It covers topics like “CSS Pagination”, “Absolute Positioning”, “Styling h1, h2, h* Headlines”, “sIfr/Image Replacement for Headlines”, “Using Lists (ul/ol)” and some more. 04.26.08 | | Rate: | SHARETHIS.addEntry({ title:’ShareBrain - Resources - SEO - SEO Articles’, summary:’ShareBrain - the best resource for webworkers.’}, {button:true} ); Related PostsCSS Positioning in Dreamweaver […]

  5. Posted April 29, 2008 at 5:38 am | Permalink

    <p>[…] 7 CSS Tricks For Better SEO (SEO 2.o - Tad Chef) […]</p>

  6. Posted June 2, 2008 at 10:41 pm | Permalink

    […] Nogle gange må websider godt se pæne ud. Derfor har vi css. Det har ham her seo 2.0-fyren skrevet noget om. Her er artiklen om god css-brug. […]

  7. Posted August 3, 2008 at 3:57 am | Permalink

    […] visited and linked, or submitted to social media. Without proper URLs, most of your other great web design, usability and SEO measures get wasted. This is not about your domain name; you need to understand slugs too; Tad […]

Post a Comment

Please mind the commenting netiquette, most notably:

  • A "name" is a real name or nick name, not a keyword! SEO Company is wrong. John Doe of Google is OK.
  • For the "website" URL: No deep links allowed unless it's your "about" page.
  • No extra signature allowed, one "website" link is enough.
  • No bot-like "Thank you" comments with no context or added value to the post.

Your email is never published nor shared. Required fields are marked *

*
*