Using Tables for Page Layout

In addition to their value in laying out tabular data, tables are also highly prized in HTML for their page-structuring capabilities.

It is customary for a Web page to have a navigation bar at the top or on the left side. It is fairly easy to create a horizontal navigation bar with regular paragraphs, as you saw in Chapter 10, but to create a vertical navigation bar, you must somehow break the page into sections. The easiest way to accomplish that is with a table. (You could also use divisions or frames, each of which is the subject of its own chapter.) Place your navigation hyperlinks in the column farthest to the left, and place the body of your content in the other columns. The table cells act as containers into ...

Get HTML and XHTML Step by Step now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.