Malte Christensen wrote :
From many posts I sense that there is an increasing aversion against
using tables for layout purposes. Instead, DIV and SPAN should be used.
Div, yes. But not span.
I am not certain how much of this is evangilism and how much is for
real. I mention this because I don't want to start a war (as in which
editor do you like? I like VI and GVIM, but that's just me ;-)).
I have found a few texts through Google but would like to know if anyone
has some references to more authoritive texts discussing the pro et
contras.
Tnx
It's all up to you. If you want to have smaller webpages, faster to
download, easier to maintain and to upgrade, more accessible in other
media, etc.., then use CSS.
1-
Authoring Tool Accessibility Guidelines 1.0 "Allow the author to
transform presentation markup that is misused to convey structure into
structural markup, and to transform presentation markup used for style
into style sheets. [Priority 3]"
e.g.
# HTML: table-based layout into CSS.
ATAG Checkpoint 4.5: Allow the author to transform presentation markup
that is misused to convey structure into structural markup, and to
transform presentation markup used for style into style sheets. [Priority 3]
http://www.w3.org/TR/2002/NOTE-ATAG10-TECHS-20021029/imp4#check-allow-transformation
2-
"Tables should not be used purely as a means to layout document content
as this may present problems when rendering to non-visual media.
Additionally, when used with graphics, these tables may force users to
scroll horizontally to view a table designed on a system with a larger
display. To minimize these problems, authors should use style sheets to
control layout rather than tables."
HTML 4.01, section 11.1
http://www.w3.org/TR/html401/struct/tables.html#h-11.1
3-
Why tables for layout is stupid. Problems defined, solutions offered.
Most possibly the best resource on this issue covering all aspects: it
was a seminar presentation, part of a conference in 2003. Translated in
12 other languages.
http://www.hotdesign.com/seybold/
4-
Tableless layout HOWTO (World Wide Web Consortium tutorial). Excellent
resource
http://www.w3.org/2002/03/csslayout-howto
5-
Tables My Ass. Excellent presentation of pros and cons and of issues
involved.
http://www.htmldog.com/ptg/archives/000049.php
6-
Tables Vs. CSS - A Fight to the Death.
http://www.sitepoint.com/article/tables-vs-css
7-
Atipico: be atypical. Very interesting site showing how up to 75% web
page size reduction can be gained by tableless design. Stats and
percentage based on data gathered when upgrading webpages and websites
by the Atipico company.
http://www.atipico.com.br/en/servicos.asp
8-
Throwing Tables Out the Window. A very bold and amazing article. The
author takes the microsoft.com webpage, then removes all of the tables
and implements CSS design and reduces the original file size of 62%!
"If multiplied out by an average of 38.7 million page views per
day, that 25 KB savings per page could add up to about 924 GB in
bandwidth savings per day, or 329 terabytes per year."
This amazing article has been translated in 8 other languages.
http://www.stopdesign.com/articles/throwing_tables/
9-
Tableless layout with Dreamweaver. DreamWeaver has a 6 parts tutorial on
how to use CSS template instead of table design:
"tables do a pretty lousy job of page construction. Among their
shortcomings is the implied bias of the code towards presentation rather
than structure, the necessity to nest tables in order to achieve the
most basic of layouts, and enough redundant bandwidth-hogging tags to
feed a large family of tag eating monsters for literally a month."
http://www.macromedia.com/devnet/mx/dreamweaver/articles/tableless_layout.html
10-
Why should I use CSS layout instead of tables? (alt.html FAQ). Resource
from the newsgroup discussion alt.html FAQ
http://html-faq.com/csspositioning/?csslayout
11-
Ian Hickson, editor of Web Hypertext Application Technology Working
Group Web Application 1.0, commenting on/about table design:
"Using HTML tables and HTML images for layout is a very
deprecated practice and belongs firmly in the land of quirks mode
documents. We should be doing everything in our power to discourage the
use of such practices in standard mode." - Ian Hickson
https://bugzilla.mozilla.org/show_bug.cgi?id=41924#c156
12-
Tableless design resources (All my FAQs).
http://allmyfaqs.com/faq.pl?Tableless_layouts
13-
Why go table free? Table free campain. Excellent. Just excellent!
http://www.workingwith.me.uk/tablefree/why/
14-
Tableless.com List of advantages of tableless design. A company
specializing in updating websites to CSS design. Excellent resource.
http://www.tableless.com.br/en/
15-
Practical CSS Layout Tips, Tricks, & Techniques: Table are dead (this
one may be for advanced users)
http://www.alistapart.com/articles/practicalcss/
16-
Les problémes de la mise en page par tableaux (in French) Tutorial
http://openweb.eu.org/articles/problemes_tableaux/
17-
Habillage de tableaux avec des CSS (in French). Tutorial
http://openweb.eu.org/articles/tableaux_css/
More info:
http://www.gtalbot.org/NvuSection/NvuWebDesignTips/TableVsCSSDesign.html
Gérard