|
To access the contents, click the chapter and section titles.
Platinum Edition Using HTML 4, XML, and Java 1.2
Other Attributes of the <TABLE> TagBecause of the new support for dividing tables into logical sections and the grouping of columns, the W3C has introduced some new attributes for the <TABLE> tag that enable you to control inner and outer borders of a table. Inner borders are controlled by the RULES attribute. You can think of inner borders as the dividing lines between certain components of the table. RULES can take on the values shown in Table 6.1.
The FRAME attribute controls which sides of the outer borders are displayed. In the context of tables, FRAME refers to the outer perimeter of the entire table and not frames such as those discussed in Chapter 7, Frames. FRAME can take on the values summarized in Table 6.2.
Tables as a Design ToolAlthough tables were developed for presenting columnar data, they have evolved to the point where they can do much more. Three primary driving forces are behind the rise of tables as a design tool:
Creating a Complex LayoutThe ABCNEWS.com page is a complex combination of embedded tables (see Figure 6.13). The navigation images you see down the right side are contained in the rightmost cell of the overall table that creates the structure for the page. Aligning Images of Different SizesFigure 6.14 shows MCIs and Continental Airlines joint promotion for frequent flyer miles. Note that image of the MCI Calling Card and the image containing the text next to it are of different heights. Because each image is of a slightly different size, it was necessary to place each in its own table cell and then use the VALIGN attribute to make them line up along their baselines. Aligning Form FieldsThe checkout page on Cdnow.coms Web site would be a mess if it werent for the different form fields placed in table cells (see Figure 6.15). The prompting text in front of the fields (Address Line 1, Address Line 2, City, State, and so on) are of varying lengths. If the fields started right after each word, none of them would line up. By placing both the prompting text and the form fields in common table rows, the alignment is perfect.
Creating Tables with Web Page Authoring ToolsThe table tags have vexed some content developers from the beginning because it is hard for some folks to keep track of all their <TR>, <TH>, and <TD> tags. It didnt take long for many popular document authoring tools to provide support for the creation and modification of HTML tablesparticularly WYSIWYG support that spares a developer from seeing any table tags at all. This chapter closes with a look at how four authoring tools can help you create tables. Microsoft FrontPage 98The FrontPage Editor gives you extensive table support from the moment you start a table. In particular, you can create a new table in three ways:
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |