March 12th, 2007
Tables are allowed to be used…
On the WSG mailing list there is a great discussion at the moment - “Talking about tabular data”. Reading the posts from members I get the feeling that some people are almost afraid to use a table…
The question was how would you mark up:
President..................................John Smith
Vice-president.........................Janet Jones
Five years ago, 95% if not more of all web coders/ designers would have coded the example as a table without batting an eye-lid, however after the CSS revolution, people are very unsure whether it is ok to code a table as a table. They will instead code it as a defination list.
The question I guess we now have to ask is are people scared into not using tables that they do not even use them for their proper use, to display tabular data?
Tables are great for tabular data but not for styling a website. A good example is my Phantom collection that is displayed in yes a table…
Popularity: 3% [?]
Like what you see? Subscribe to my RSS feed and get daily updates!
Or hear for an explanation about RSS, thank you for visiting.
I’ve had this debate before, and I see no problem using a table for displaying data that needs to be displayed in columns, especially where there is both a horizontal and vertical relationship between the data. If it is they type of data you might display in an excel spreadsheet, then I consider a table a good candidate. An example might be the tally of sports team results. In the WSG example you mention, I think a table is probably not the best solution - I would also choose a definition list. The same goes for contact details such as:
Phone … +61 03 xxxxxx
Fax … +61 03 xxxxxx
Email … you@example.com
Comment by Jonathan Nicol — March 15th, 2007 @ 3:07 pm