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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access