Have I made a semantic mark up faux pas?

<div style=“clear:both”></div>

Good morning from dull, overcast 7 degrees C Wakefiled UK :frowning:

Ok on this page:
Ive used <div style=“clear:both”></div> in the code to keep headers where I want them but is this a mistake in terms of spider crawlability?

Any insights welcome :slight_smile:

CSS has absolutely nothing to-todo with SEO, I have no idea what made you think such a thing (none of the search engines take much notice of CSS at the moment either). Though in point of fact you are probably better off having the style in the stylesheets purely out of reducing the amount of bandwidth used (CSS is cached and re-used). It’s an all-round better idea to have structure and style as separate as possible. :slight_smile:

I agree with Alex. That shouldn’t have any effect on crawl-ability. I often use SEO browser (website) to see how a spider will view the page. Another option is to use Lynx or a similar text based browser.

I can’t imagine that that will have any effect on search engines at all.

Spiders generally walk straight past CSS declarations and ignore them, just looking for the meaty content of the page. Some of them might be smart enough to know when you are using naughty CSS (eg foreground text the same colour as background text to plant additional keywords), but legitimate styling for layout purposes won’t bother them at all.

The only thing that might be better would be to put [COLOR="DarkRed"]div.clear {clear:both;}[/COLOR] in your external CSS file, and have [COLOR="Navy"]<div class="clear"></div>[/COLOR] in the HTML, but that is a minor improvement that will have no bearing on the crawlability, or anything else really!

Thank you everyone :slight_smile: