Forum Moderators: not2easy

Message Too Old, No Replies

CSS and SEO

What do you do?

         

Nick_W

10:18 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Okay, time to spill the beans guys...

Personaly I use CSS for SEO in lot's of ways:

  • Positioning: Getting 'prime' content directy at the top of the html flow.
  • H1 tags: Nicely formatted h1 tags for SEO right after the <body> tag for preference.
  • Background images: Using a bacground image for the 'logo' so the h1 stays the first thing an SE sees.

There is also the dark side of CSS for SEO purposes (don't bother looking, I don't do it ;))

  • Hidden content: diplay: none; can be used to hide almost anything and is prefered to the rather crap 'same color text' thingy..

Also, there is just the plain fact that SE's like small pages with good text->code ratios. using CSS and XHTML certainly appears to work for me...

What else do you do? and are there any drawbacks to the CSS-SEO techniques?

Nick

digitalghost

10:32 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>Positioning: Getting 'prime' content directy at the top of the html flow.

H1 tags: Nicely formatted h1 tags for SEO right after the <body> tag for preference.

Background images: Using a bacground image for the 'logo' so the h1 stays the first thing an SE sees.

Well, I have to agree with all of those.

We recently made a commitment that all the sites we optimize will contain valid XHTML and CSS. This allows for smaller pages, better positioning of content in relation to the body, (helps with KW proximity in relation to the title tage as well) and allows us to know that the spiders aren't tripping on any code.

As for the dark side stuff, I can't see the need to use any of those techniques and we certainly can't put a client's site at risk so we steer clear of those techniques.

The only content that gets put in a table is content that should be in one. I've always hated the idea of tables for layout purposes. HTML has been asked to do so much that it was never intended to do. ;)

Another thing CSS allows you to do is change color schemes quickly and typography. Want to see if color contributes to conversion? Change the scheme. Same thing goes for typography.

Code custom classes ahead of time and you can create entire "converstion rate" campaign studies quite easily.

andreasfriedrich

10:43 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



HTML has been asked to do so much that it was never intended to do.

Using an invention in a way that was not envisioned by its inventors is quite common and nothing negative in itself.

Andreas



added:
Nick, since this is really off topic you may delete this post, when digitalghost is ok with deleting his answer to this post as well.

[edited by: andreasfriedrich at 10:54 pm (utc) on Dec. 8, 2002]

digitalghost

10:49 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>negative in itself.

I don't want to stray off topic here, and I agree with the in and of itself bit. I'm just happy to see some progress being made and some of the demands on HTML being decreased by new technologies.

<added>I'm okay with deleting it :)</added>

[edited by: digitalghost at 11:46 pm (utc) on Dec. 8, 2002]

4eyes

11:44 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Where the site design will allow, we are using styles to create "mouse over buttons" without using any images.

Although they all end up rectangular and rather basic, it allows the button text to count as text links and also gets the page size down some.

Nick_W

11:46 pm on Dec 8, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...and for anyone that's interested, we had a discussion on left menu rolloevers here... [webmasterworld.com]

Nick

Birdman

1:25 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>>are there any drawbacks to the CSS-SEO techniques?

I don't see any drawbacks and the SE's probably don't either. It makes everyone's job easier. Sure people will abuse it, but before long the innocent CSS techniques mentioned above will be as popular as meta tags. It's definitely the future, and I'm glad I'm on the bandwagon now:)

>>>What else do you do?

Using CSS inline to place h tags at the start of paragraphs. I don't actually do it, but it came to mind. Most would probably consider it cheating.

Birdman

tedster

1:33 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a few sites that use mouseover to make extra text information visible. Those supplementary sentences are keyword rich and absolutely positioned on the page - and their code is easily moved to the top of the HTML.

But unless the cursor hits the proper spot, the visitor never sees the content. Once I had a coding error in the JS which made it so no one could ever see the mouseover text.

Same thing goes for divs that begin in a negative position. They begin off the screen and then get moved on screen through some user action. The visibility is never set to "hidden", but the starting position still makes them invisible to the ordinary visitor.

And again, unless the visitor triggers the DHTML behavior, the content in that div is not seen, but it's not really hidden either, strictly speaking.

None of this is revolutionary - we see it every day in DHTML menus. But not everyone considers how important the choice of menu "labels" can be for keywords - and those keywords have the bonus of appearing in link text.

SethCall

4:58 am on Dec 9, 2002 (gmt 0)

10+ Year Member



2 things: what does SEO stand for

and Nick perhaps I didn't understand one thing: Display:none is bad somehow? (I recently just fell in love with it :( )or where u knocking the same-text-color-so-text-hides "trick"

Other than that, I dont even know how to do non-CSS formatting.;) Ah the joys of being a newb :)

Div >>> Tables

bill

5:02 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



what does SEO stand for

Check the handy glossary link [searchengineworld.com] at the top of the page if you come across unfamiliar terms.

4eyes

5:56 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



SethCall

The display = none is kind of advertising that it is hidden which makes it easy for SEs to filter if they chose to,

Giving it a visibility that depends on some other action makes it harder to identify.

SethCall

6:06 am on Dec 9, 2002 (gmt 0)

10+ Year Member



ah :) thx bill . Never really noticed that. Just another affirmation of how much this is really just a great site.

Nick_W

9:57 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, display: none; isn't dreadful in itself, it's just 'obvious'. I use it for a skip navigation link on memus sometimes but that's about all...

Nick

SuzyUK

10:02 am on Dec 9, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I too use all of the aforementioned techniques. Also alt and title tags in everything that allows it.

In one site that targets a younger audience I have a span class with a title attriubute which explains any abbreviations , then I get a chance to fill in the full names in the title tag, so keeping the page shorter (the main audience like "buzzwords" :)) and user friendly.

And this Company name is "Keyword Keyword & Keyword", branding means they are more known by their "first name" but words 2 and 3 are also important as they describe the nature of the business. It's too long a phrase to keep repeating so my class:

<span class="help" title="Keyword Keyword & Keyword">Keyword1</span>

Using CSS to style the class so it underlines and produces a "help" cursor to aid the viewer.

Q. could you legitimately use a title tag say in the H1 tag to enter a description/catchphrase assuming that the text in the <h1> tag is the company name?

I also use <hr class=" hide /> set to display:none wherever I want a naturally occuring section break so it keeps the page flowing in text readers etc...

Suzy