Posted By: Michael_Schwarz
HTML: Why are Tables so evil? - 08/23/09 18:37
I've been pondering around this issue a long time. And I hear it from everywhere, but why EXACTLY is it that tables are evil to use in website design?
I personally really like using tables, they are easy to use, you can get a design set up in a matter of an hour instead of days and it just... works. In all browsers. Without using 3 workarounds so it works in Opera, IE and FF. Without using a hack so that I can place that one thingy there where I want it to be, and have it stay there in all browsers.
Now, I don't have a problem making a website using divs and css only but it's a painstaking experience. When I have to use hacks and workarounds to accomplish some simple layout so it looks the same in all browsers, it becomes part of a problem, not of a solution. Why not use a table instead? I could have this thing up and running in 10 minutes, but using this DIV there and those CSS properties with a little JS hack takes me a day if I'm lucky.
I'll quote a phrase I've seen on another website the other day, unfortunately the comments didn't help me any further, as its just a back and forth between "tables are evil", "no they are not!":
Most of my clients demand websites in DIV and CSS only because someone told them that tables are evil. But _why_exactly_ is that?
Answers that are not valid:
- If you know CSS well enough you can do the same thing just as well without using tables. (Again, WHY avoid tables in the first place?!)
- Tables render slow (I doubt that anyone using a 200MHz PII Processor uses it to browse the internet on a regular basis. With processor powers over 500 MHz that issue really cant be noticed *at all*, yes, maybe a robot with a 2 Teraherz processor would complain cause it would seem like an eternity to him... but a human? the time difference is merely the blink of an eye)
- Tables can be inflexible (not as inflexible as using div's with floats and relatives and absolutes and.. and and...)
- Tables don’t "degrade" (de...grade...?)
I personally really like using tables, they are easy to use, you can get a design set up in a matter of an hour instead of days and it just... works. In all browsers. Without using 3 workarounds so it works in Opera, IE and FF. Without using a hack so that I can place that one thingy there where I want it to be, and have it stay there in all browsers.
Now, I don't have a problem making a website using divs and css only but it's a painstaking experience. When I have to use hacks and workarounds to accomplish some simple layout so it looks the same in all browsers, it becomes part of a problem, not of a solution. Why not use a table instead? I could have this thing up and running in 10 minutes, but using this DIV there and those CSS properties with a little JS hack takes me a day if I'm lucky.
I'll quote a phrase I've seen on another website the other day, unfortunately the comments didn't help me any further, as its just a back and forth between "tables are evil", "no they are not!":
Quote:
"Float elements are not about layout, their primary use is for a block to float inside a text paragraph — like for images in a word processor document."
Most of my clients demand websites in DIV and CSS only because someone told them that tables are evil. But _why_exactly_ is that?
Answers that are not valid:
- If you know CSS well enough you can do the same thing just as well without using tables. (Again, WHY avoid tables in the first place?!)
- Tables render slow (I doubt that anyone using a 200MHz PII Processor uses it to browse the internet on a regular basis. With processor powers over 500 MHz that issue really cant be noticed *at all*, yes, maybe a robot with a 2 Teraherz processor would complain cause it would seem like an eternity to him... but a human? the time difference is merely the blink of an eye)
- Tables can be inflexible (not as inflexible as using div's with floats and relatives and absolutes and.. and and...)
- Tables don’t "degrade" (de...grade...?)