Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!


Sponsored Content

 

 
 

Photo
- - - - -

<table> Vs <div>


  • Please log in to reply
4 replies to this topic

#1 Foops

Foops

    HR 2

  • Members
  • PipPip
  • 11 posts
  • Location:Nevada, USA

Posted 24 September 2004 - 01:01 PM

From the standpoint of a Search Engine Spider, is there really a difference? I've recently rebuilt a clients site and built it in <div> tags and not <table> tags...

Will this site really benefit from 'clean coding'?

Please inform me...

Thanks, Ted

#2 linux_lover

linux_lover

    LiLo

  • Active Members
  • PipPipPipPipPipPip
  • 831 posts
  • Location:York, UK

Posted 24 September 2004 - 01:31 PM

QUOTE
Will this site really benefit from 'clean coding'?


Did a designer really say that? How far are we removed from the old 28.8k modems huh.gif

The point of using DIVS from a search engine / user point of view is:
Smaller file size less code == less bytes == faster loading
its more accessible to screenreaders...
The fact that the pages are smaller in file size means more efficient spidering - which can only be good.
Its more logical, spock. Tables are for tabular data, not design - as the W3C specifications say.
Another fact about tables is that the content will only appear on the page after the whole table(s) has loaded - whereas DIVS load based on the order of code.

I am sure there are more.... smile.gif This is coming from a bloke who was pro tables about 2 months ago :S

#3 Ron Carnell

Ron Carnell

    HR 6

  • Moderator
  • 959 posts
  • Location:Michigan USA

Posted 24 September 2004 - 10:58 PM

Convert a single-cell table into a DIV and you'll save about 22 bytes. Convert a two-cell table into two DIVs and your savings could drop down to 20 bytes. You'll potentially continue to lose another two bytes for every cell after that, until soon enough your tableless design just might result in a *larger* file size rather than a smaller one.

There are a lot of very good reasons to eliminate unnecessary tables. IMO, file size and SEO aren't on that list of good reasons. smile.gif

#4 linux_lover

linux_lover

    LiLo

  • Active Members
  • PipPipPipPipPipPip
  • 831 posts
  • Location:York, UK

Posted 25 September 2004 - 04:36 AM

Accessibility and order of loading are my main two....

I was making a point about efficiency with the size bit.
What are yours Ron?

#5 Ron Carnell

Ron Carnell

    HR 6

  • Moderator
  • 959 posts
  • Location:Michigan USA

Posted 25 September 2004 - 09:14 AM

Accessibility is a good reason to avoid unnecessary tables, LL. I'm not sure I would agree that order of loading is a reason, and I don't think size is a good reason, either. Efficiency? If you're talking about browser efficiency ("content will only appear on the page after the whole table(s) has loaded"), I really don't see a lot of difference. The browser still has to compute size, location, and z-index of a DIV before it can start displaying it.

If you're talking about development efficiency, however, then I wholeheartedly agree that using unnecessary tables in a design can be an impediment.

Best I can tell, though, to return to Ted's question, from the standpoint of a search engine spider there really isn't any difference between tables and DIVs. At the end of the day, there's a whole lot of table-based pages ranking very high in the SERPs.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users