Forum Moderators: open

Message Too Old, No Replies

<div> tags and how Google spider them

I want to use the <div> tag in the redesing of my site - for content text

         

shawn

6:52 am on Jul 3, 2003 (gmt 0)

10+ Year Member



I was searching Webmasterworld for the pros and cons of iFrames and iLayers and decided that it was not worth it to use them since spiders have problems with them as they do traditional frames.

However, I ran accross this during my search in Webmasterworld:

<div style="width: 500px; height: 300px; overflow: auto">
<p>... content goes to here ... </p>


From what I have read in this forum, if I use this, spiders will still be able to index the content in that tag.

Before I use it I want to double check again and see if anyone has any pros or cons about it.

I am re-designing my site and want to place all my text content in the <div> tags so that it will scroll nicely with the graphics around it being static.

I have an "ok" PR right now of 5 and rank in the top ten for most of my target search terms - I would hate to ruin the work I have done so far by going this route.

Thanks in advance -

Shawn

John_Caius

11:58 am on Jul 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The <div> tag is just a layout tag - puts stuff together in invisible boxes on the screen. FTR, the correct form should be:

<div>
content
</div>

or nested:

<div>
<p>
content
</p>
</div>

and no, Google doesn't have any issues about crawling content within a <div>.

Pricey

1:18 pm on Jul 3, 2003 (gmt 0)

10+ Year Member



That's correct; <div> is used as a layout tag, but using layers, so you can overlap stuff unlinke with <table>

I have not heard anything about G having probs with <div> so you should be fine :)