The HTML tags that create tables have become the workhorse of many web designs. They were designed to display rows and columns of data, but have been used instead to creatively subdivide the page, creating grids for interesting layouts. Over the years, tables have been combined and contorted to make way for any number of creative web designs. Tables can be used to create columns of text or lovely patchworks of color. And graphics can be chopped up and divided among table cells to achieve the illusion of a continuous image. The problem with tables is that the HTML code gets very complex. And this complexity slows down your site: Embedded tables and mistakes within complex ones are a major culprit behind slow web pages. There's another big problem with tables: Data in a table is structured simply to look good in a web browser there's no deeper meaning in its use of rows and columns. This renders the page unreadable to other types of applications, such as handheld computers (which have a smaller screen) and screen readers for the blind (which rely on a logical structure to translate pages into verbal explanations). For this reason, many designers now use stylesheets to lay out their pages. Stylesheets (combined with <div> tags) allow you to format the page visually without confusing the page structure. (See understanding stylesheets, p. 162, and building your site to last, p. 184.) learning to use tablesThe trick to using tables is translating the visual design you want into a series of table "cells" (of varying width) within rows (of the same width). All the content that appears in the table must be contained within one of the cells. You'll find good tutorials on tables on the site Webmonkey (see the listing on this page) or in most HTML reference books.
Learning to use tables Webmonkey table tutorials http://www.webmonkey.com/authoring/tables/ |