Welcome to WebmasterWorld Guest from

Forum Moderators: mademetop

Message Too Old, No Replies

Drupal and over-abundant use of Div Tags - SEO

Using the Drupal CMS for page creation... <div> tag heavy!

3:36 pm on Apr 28, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 28, 2010
posts: 2
votes: 0

Anyone here a Drupal user? Everything was rolling along fine until we noticed page creation (using the panels module specifically) caused an exorbitant number of divs and nested div tags to populate the source code.

Basically anything simple content was <div>ed or nested in <div>s to the point that most of the code was, you guessed it, mostly some form of div tags.

I know divs and styles work well together, but this was over the top and makes me wonder if this is detrimental to crawling/indexing. I can't help feel that if I build the page using basic HTML I could reduce the size to almost a third of what its is now AND the content would be clean and less diluted.

Anyone have experience with Drupal or opinions about this?

<div style=1><div id="navContainer"><div id="someContainer"><div id="anotherContainer">

Thanks for any input anyone has!

5:27 pm on Apr 28, 2010 (gmt 0)

Preferred Member

10+ Year Member

joined:Feb 18, 2003
votes: 0

Do you think Googlebot says, "I've just been through 6 DIVs, this content isn't as good as content that can be found in 3 DIVs"?

I run both a D5 and a D6 site with 5M visitors per year. We switched to Drupal FOR SEO reasons.
6:38 pm on Apr 28, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 28, 2010
posts: 2
votes: 0

Point taken, however, I guess my question is more geared towards whether Googlebot would take the additional time to keep digging down through excessive lines of code to get to my content.

If a good portion of my content is now relegated to line 350 due to heavy <DIV> usage instead of line 150, this might be a concern.

I'm always under the assumption that bots will only give you a finite amount of resources to devote to crawling a particular site - so, having it spend its time peeling back and parsing countless <div>s seems a little counter-intuitive to outright content exposure.

That's where my concern lies - I don't think it will differentiate between a single div block with content vs content w/o <div>. It's the accumulative code bloat that worries me.

Hope that makes sense...
7:19 pm on Apr 28, 2010 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member tangor is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Nov 29, 2005
votes: 752

Most times SEs find the content, regardless of how much layout (divs, etc), is involved. If we're talking about a page that is above fold to below fold, I doubt there's any problem or need for concern.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members