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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.