A Complete Guide to Web Design

(やまだぃちぅ) #1
172 Chapter 10 – Tables

Summary of Table Tags


Web Design in a Nutshell, eMatter Edition

rules=all|cols|groups|none|rows
Tells the browser where to draw rules within the table. Its values are as
follows:

When the border attribute is set to a value greater than zero, rules default to
“all” unless otherwise specified.
This attribute was introduced by Internet Explorer 3.0 and now appears in the
HTML 4.0 Specification. It is not supported by Netscape as of this writing.
summary=text
Provides a summary of the table contents for use with non-visual browsers.
vspace=number
Holds a number of pixels space above and below an aligned table (same as
vspace in the<img> tag).
width=number, percentage
Specifies the width of the entire table. It can be specified in a specific number
of pixels or by percentage of the browser window.
Internet Explorer 2.0 and higher only
bordercolor="#rrggbb" orcolor name
Specifies the color of the main center portion of a table border. (Table
borders are rendered using three color values to create a 3-D effect.)
bordercolorlight="#rrggbb" orcolor name
Specifies the color of the light shade used to render 3-D-looking table
borders.
bordercolordark="#rrggbb" orcolor name
Specifies the color of the dark shade used to render 3-D-looking table
borders.

<tbody> NN: 2, 3, 4- MSIE:2, 3, 4, 5 - HTML 4 -WebTV- Opera3
<tbody>...</tbody>

Defines a row or group of rows as the “body” of the table. It must contain at least
one row (<tr>). The end tag is optional.
“Row group” tags (tbody, thead, and tfoot) were introduced by Internet
Explorer and are part of the HTML 4.0 Specification, but all attributes may not be
fully supported. The system could speed table display and provide a mechanism
for scrolling the body of a table independently of its head and foot. It could also
be useful for printing long tables for which the head information could be printed
on each page.

none no rules (default)
groups rules appear between row groups (thead,tfoot, andtbody)
and column groups
rows rules appear between rows only
cols rules appear between columns only
all rules appear between all rows and columns
Free download pdf