When to use tables

Published: 05th January 2006
Views: N/A
Ask About This Article Print Republish This Article

Some people have taken CSS beyond layouts - to the point of arranging data. Tables are still a key part of web design and have an important part in arranging data.

According to the W3C: "The HTML table model allows authors to arrange data -- text, preformatted text, images, links, forms, form fields, other tables, etc. -- into rows and columns of cells."

The key word here is data. The definition of data is - "actual information, especially information organized for analysis or used to reason or make decisions."

When to use tables
- If the content is a record of data, such and information organizable by a spreadsheat.
- If you're going to have header fields at the top of columns of data or to the left of rows of data
- If the contents makes sense in a database, especially a very simple database, and you just want to display the data, and not "make it pretty", then a table is acceptable.

When to not use tables
- To position the contents on the page in some way. For example, to add spacing around an image, to place bullet icons on a list, or to force a block of text to act like a pull quote.

- Cutting up an image and then placing the image pieces back together using a table.

Tables Are Your Friend
It is quite possible to create a Web page that uses very creative looking tables for tabular data and still remain valid and standards-based XHTML. Tables are an important part of the XHTML specification, and learning to display tabular data well is an important part of creating Web pages.

This article is free for republishing
Source: http://markspencer.articlealley.com/when-to-use-tables-22636.html


Report this article Ask About This Article Print Republish This Article


Loading...
More to Explore
 


Ask a Professional Online Now
27 Experts are Online. Ask a Question, Get an Answer ASAP.
Type your question here...
Optional:
Select...