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.
Loading...