HTML: The Definitive Guide

Previous Chapter 9 Next
 

9.3 Beyond Ordinary Tables

On the face of it, HTML tables are ordinary: just a way for academics and other like-minded data crunchers to format items into columns and rows for easy comparison. Scratch below the surface, though, and you will see that tables are really extraordinary. Besides <pre>, the <table> tag and related attributes provide the only way for you to easily control the layout of your document in HTML. The content inside a <pre> tag, of course, is very limited. Tables, on the other hand, may contain nearly anything allowed in normal body content, including multimedia and forms. And the table structure lets you explicitly control where those elements appear in the users' browser window. With the right combinations of attributes, tables provide a way for you to create multicolumn text, and side and straddle heads in HTML. They also enable you to better set up your forms to make them easier to read, understand, and fill out. That's just for starters.

We don't know that we can recommend you get too caught up with page layout--tables or beyond. Remember, HTML is not about looks but about content. But....

It's easy to argue that at least tables of information benefit from some controlled layout, and that HTML forms follow a close second. And we expect that the HTML standards bearers will soon release their sanctioned version of HTML table tags that every browser manufacturer will scramble to incorporate with their software. So unlike some other browser-specific extensions to the language, you probably won't go wrong with the table extensions.

And now that we've whetted your appetite for page layout with tables, don't despair that we've let you down by ending this chapter without examples--we have several in 12.5.


Previous Home Next
Table Tags Book Index Frames
 


Banner.Novgorod.Ru