Why are tables bad?

This is a discussion on "Why are tables bad?" within the Web Page Design section. This forum, and the thread "Why are tables bad? are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 23rd, 2007, 19:48
Junior Member
Join Date: Sep 2006
Location: Here
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Why are tables bad?

Why are some people so negitive about tables? What makes them bad? What's up with the <div> tag?
Reply With Quote

  #2 (permalink)  
Old Jan 23rd, 2007, 20:06
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Why are tables bad?

Tables are used for tabular data, or should be. The goal/idea is to separate design from content. Using tables you are mixing your markup in with layout elements i.e. using tables to control the page display. This leads to more difficult to manage code, heavier pages and can affect accessibility.

The preferred method is to use CSS to control your design and layout while keeping your HTML/xHTML lean and clean instead of using tables you would do something like:

<div id="container">
<p>This is body text...</p>
</div>

vs

<table>
<tr>
<td>This is body text...</td>
</tr>
</table>

id="container" will call an ID from your external CSS style sheet and tell that div how to behave. Makes for much more effective presentation and such. Based off of the two examples you can immediately see the difference in the amount of markup required. Using external CSS also allows for instant site wide changes to any element just by modifying a single file. Also using divs/css you can have full control over screen and print output. Tables not so much.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)

Last edited by moojoo; Jan 23rd, 2007 at 20:11.
Reply With Quote
  #3 (permalink)  
Old Jan 23rd, 2007, 20:17
Junior Member
Join Date: Sep 2006
Location: Here
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

Are there any advantges to using tables for design? I can think of a few but <div> may be able to do it better. I don't know <div> yet.

BTW, I like how you used the word tabular (arranged or displayed systematically in table form).
Reply With Quote
  #4 (permalink)  
Old Jan 23rd, 2007, 20:35
Reputable Member
Join Date: Jul 2006
Location: Scotland
Age: 22
Posts: 357
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to snow
Re: Why are tables bad?

pages can become very convoluted and difficult to edit & develop once you have layers upon layers of tables...

Here is the most entertaining site I've found to explain it:
http://www.hotdesign.com/seybold/
Reply With Quote
  #5 (permalink)  
Old Jan 23rd, 2007, 23:47
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

Tables are easier and more browser friendly to design with, to be honest. But then again, it would be easier to put up a tent than to build a house. Which one would you rather live in? Separating content from presentation is good for accessibility, SEO and management. Down with tables (for design)!
Reply With Quote
  #6 (permalink)  
Old Jan 24th, 2007, 03:21
Junior Member
Join Date: Sep 2006
Location: Here
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

Okay, that makes sense to me. What about tables for design is bad for SEO?

Thanks
Reply With Quote
  #7 (permalink)  
Old Jan 24th, 2007, 05:01
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

Content to keyword ratio is quite important. Tables require much more inline code than CSS driven sites do.
Reply With Quote
  #8 (permalink)  
Old Jan 24th, 2007, 11:46
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

A better way to build your website
Why tables for layout is stupid: problems defined, solutions offered
Ten ways to speed up the download time of your web pages
Nested Tables: About the (ab)use of tables as layout tools in webpages.
Why Tables Are Bad (For Layout) Compared to Semantic HTML + CSS
Why go table free?
Why avoiding tables (for layout) is important


All those links were taken from the stickied thread Resources for learning how to use CSS for layout in the beginners resources section. In thread thread ... have a look at the links in the "why" section.
Reply With Quote
  #9 (permalink)  
Old Jan 24th, 2007, 15:51
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Why are tables bad?

I had a post about this here while back.
Her it is http://www.webforumz.com/html-forum/...ike-tables.htm
Reply With Quote
  #10 (permalink)  
Old Jan 30th, 2007, 10:54
New Member
Join Date: Jan 2007
Location: Slovakia
Age: 30
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

There is nothing wrong with the table element at all. With the DOM it is possible to work with rows/cells as good as with div elements and tables are necessary if you wosh to dynamicaly accomodate the width/height of the layout.

-------------------
Malware blog project
Reply With Quote
  #11 (permalink)  
Old Jan 30th, 2007, 12:47
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

^ We're not saying there's anything wrong with the table element. But if you used in a matter that it should ... then there's a problem. If you're using table to help you with your layout, not good. If you use for tabular data ... very good
Reply With Quote
  #12 (permalink)  
Old Jan 30th, 2007, 16:39
moojoo's Avatar
Moderator
Join Date: Aug 2005
Location: Texas
Age: 31
Posts: 1,742
Blog Entries: 1
Thanks: 0
Thanked 17 Times in 17 Posts
Send a message via AIM to moojoo Send a message via MSN to moojoo Send a message via Yahoo to moojoo
Re: Why are tables bad?

Quote:
Originally Posted by majo323 View Post
There is nothing wrong with the table element at all. With the DOM it is possible to work with rows/cells as good as with div elements and tables are necessary if you wosh to dynamicaly accomodate the width/height of the layout
Same with divs, in fact probably as easy if not more so. At any rate tables were never intended for layout, they just happened to be a solution at a time when that was the only acceptable method. The days of tables for layout are over and CSS/XHTML is now the standard. I am not anti-table but I am against the abuse of tables which is all to common in novice web design/dev.
__________________
The internet is just a fad.
http://www.mevans76.com
Last Blog Entry: Apps every Mac based web dev should consider (Jul 10th, 2008)
Reply With Quote
  #13 (permalink)  
Old Jan 30th, 2007, 18:06
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Why are tables bad?

Tables were more of a 90's thing back when css wasnt that well known. Yes its easier to work with but its less appealing to the eye and if you have images it has to be a fixed size so it dosent distort you page and make it look horriable. With css the layout expands with the users monitor settings. Yes tables do that to but if you have images you get the problem that i just stated. CSS also helps with those website thieves that want to mock your site make it have a more difficult time to mock it. All they really get is your info and not your layout (in your using external css), unless they know how to get to it.but if thier noobs trying to rip your site off and call it thier own then it makes it harder. My thing is trust the experts and dont ask questions or people look at you like your stupid. That just what i learned.
Reply With Quote
  #14 (permalink)  
Old Jan 31st, 2007, 09:17
Daniel's Avatar
Elite Veteran
Join Date: Sep 2006
Location: The Kingdom of Rabbits
Age: 21
Posts: 2,051
Blog Entries: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Daniel
Re: Why are tables bad?

im doing web dev. in my course and they teach us to use tables - bloody annoying cause i know we wont ever use them
Last Blog Entry: Assassin's Creed (Nov 22nd, 2007)
Reply With Quote
  #15 (permalink)  
Old Jan 31st, 2007, 16:16
Reputable Member
Join Date: Dec 2005
Location: Texas
Age: 19
Posts: 328
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to daygon Send a message via MSN to daygon Send a message via Yahoo to daygon
Re: Why are tables bad?

Yeah im sorry dan its a lost cause. You know how trends come back around. Just wait... you keep doing tables you'll be the cool guy again yet.
Reply With Quote
  #16 (permalink)  
Old Jan 31st, 2007, 16:59
Reputable Member
Join Date: Jul 2005
Posts: 400
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

What really makes me mad is so many of the tops sites for many different searches are, of course, table designs.

When are these relics going to start taking second place? Seems all of our efforts to comply with these better css/xhtml techniques are going unnoticed.

I'm guessing it's a matter of them being around a lot longer, but why should that really matter? That would be showing preferential treatment in a situation that should be completely unbiased.
Reply With Quote
  #17 (permalink)  
Old Jan 31st, 2007, 17:26
SuperMember

SuperMember
Join Date: Sep 2006
Location: Pink House
Posts: 3,946
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

Snow thanks for that link! I learned a lot! They did such a cute job of making their points!
Reply With Quote
  #18 (permalink)  
Old Jan 31st, 2007, 21:31
Ryan Fait's Avatar
SuperMember

SuperMember
Join Date: May 2006
Location: Las Vegas
Posts: 3,786
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Why are tables bad?

I agree with you mreine.

Search engines definitely show preferential treatment to those sites that have been around longer. I've got a site with nothing but a single link to my current site on it. It still turns up in search engines fairly high for the content that used to be on it (8-10 months ago). It's so ridiculous.
Reply With Quote
Reply

Tags
div, table, tables

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
omg keep me away from tables !!! HELP!!! bruno89 Web Page Design 5 Jul 1st, 2007 18:33
Use CSS to do what tables do????? WebNinja Web Page Design 17 Feb 18th, 2007 01:07
No more tables? PicoDeath Web Page Design 9 Sep 28th, 2006 18:03
Tables or CSS? bee_bo Web Page Design 15 Jul 6th, 2006 08:32
Tables... dhagsjash Web Page Design 2 Sep 16th, 2003 09:05


All times are GMT. The time now is 21:18.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43