Help - Search - Members - Calendar
Full Version: Html Tables
Zymic Webmaster Forums > Web Design & Development > General Web Design Discussion
MrTouz
I searched and did not find any topics related to tables made on HTML.

My question, Why people hate the tables ?

Most of the sites i made, well all of the sites i made with TABLES (directly sliced from Photoshop) and when use of CSS work perfectly over FF / IE / Safari

Tables solve so many problems and make you not use as many div tags as you need if you want to NOT use Tables.
Are they bad? should'nt they be used ?

whats wrong with them ?
Andrew
They are not standards compliant.
MrTouz
Well they do not show errors when you have to validate them.

They are here for a reason i guess, and they do the job. I still don't know why people hate to use it much.

You said inside an other topic not to use it and where you learn bad habits and its an easy way. Well for myself i can code with divs only, but the result is EXACTLY the same, and when you validate them its also the same they get both none errors. But somehow it is a WAY fast to code it with tables since most of the designs will be sliced from Photoshop, why not use the tables given from there and than add divs and such to play with different elements ?
Andrew
Because tables are meant for data, not website layouts. And I bet if you checked it would NOT be valid in XHTML.
Paradoks
Yes. In xHTML standards, Tables arent valid, but in HTML4.1 strict they are,

Yeah, I know what your saying how tables already come aranged, and in order and dont give you problems but they arent as flexable as xHTML. and they also take up more time to load because they use more images and such.

I used to be a table lover too but slowly i got into CSS/xHTML.
bezz
When using xhtml+css with divs and spans, layouts can be completely customized by simply changing a css file.

Layouts using divs and spans with css are more readable to machines, such as the search engine crawlers.

Layouts properly coded using divs and css are almost always shorter in source code length.

Javascript and css work well together to create those nice 'Web 2.0' sites.

Tables are meant to display tabular data like spreadsheets.

No spacer graphics needed with css/divs.
Alex
QUOTE(bezz @ Jun 19 2008, 12:17 PM) *
When using xhtml+css with divs and spans, layouts can be completely customized by simply changing a css file.

Layouts using divs and spans with css are more readable to machines, such as the search engine crawlers.

Layouts properly coded using divs and css are almost always shorter in source code length.

Javascript and css work well together to create those nice 'Web 2.0' sites.

Tables are meant to display tabular data like spreadsheets.

No spacer graphics needed with css/divs.


Says most of it, I would expand on the fact that tables are meant to hold tabular data to say that this means that using them for structuring your layout is bad semantics. It's not just standards that we try to comply with.

Tables should be used for displaying tabular data, but if you do then they should include table headings etc.
MrTouz
This was the kind of answer i was looking for.

Thanks, well ok now i get the data part, i guess ill just have to move on to using only divs !
xXDarkXx
On google: div vs table... div wins

Tables are not SEO... div and h1, h2 ul li span etc all these tags are.
nelzro
I prefer to used TABLES, for me, you can easily control the layout of your page.
bezz
QUOTE(nelzro @ Jun 25 2008, 02:15 AM) *
I prefer to used TABLES, for me, you can easily control the layout of your page.

Just because you know how to create a website using tables does not make tables better than divs. It is easier to create websites using divs once you learn how to use them properly. It is much easier to control the layout of a website using divs and css, especially one with multiple pages.
MrTouz
well, before i continued on this topic i really had to test it out. I never ever did a site based on DIVS only.
http://www.mtzprod.com/clients/bfree is the latest website i did, and for this one i had to do it with divs and css ONLY,... no tables.

And i have to admit, it looks less crowded with divs only and you feel like you have more control over your website. which is something pretty cool. But again its really strange because its really hard to know how to code correctly using css and divs only. Its hard because your layout gets messed up really hard. I guess you get more control after all and of course... it makes you - like stated above - change your layout really easily if you use CSS only... especially for style changers... !

If you are someone like me.. that is actually wanting to find something new and wants to learn CSS even more... i guess making sites more over DIVS is something really great !
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.