Полезная информация

Webmaster in a Nutshell

Previous Chapter 5

5.2 The <caption> Tag

You can add a title or caption to your table by using a <caption> tag within a <table>. The default placement of the caption for Netscape and Internet Explorer is above the table and centered with it. The placement and alignment of the caption is controlled by special alignment attributes that differ between the browsers.

In Netscape and Mosaic, the align attribute accepts two values: top and bottom. These allow you to put the caption above or below the table. The default value is top.

Internet Explorer, on the other hand, uses the align attribute for horizontal placement of the caption. It accepts values of left, right, and center (the default). The vertical positioning of the caption in Internet Explorer is controlled by a special valign attribute, which accepts either top (the default) or bottom. Each browser ignores the attributes and values that it does not accept.

Previous Home Next
The <table> Tag Book Index The <tr> Tag

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell