HTML The Definitive Guide (113 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

BOOK: HTML The Definitive Guide
12.44Mb size Format: txt, pdf, ePub

Chapter 11

Tables

 

11.2 Table Tags

A wide variety of tables can be created with only five tags: the

tag, which encapsulates a table and its elements in the HTML document's body content; the tag, which defines a table row; the , , , , and tags. Each tag has one or more required and optional attributes, some of which affect not only the tag itself, but also related tags.

11.2.1 The

and tags, which define the table's headers and data cells; and the
tag, which defines a title or caption for the table. Beyond these core tags, you may also define and control whole sections of tables, including adding running headers and footers, with the
Tag

The

tag and its
end tag define and encapsulate a table within the body of your HTML document. Unless otherwise placed within the browser window by style sheet-, paragraph-, division-level, or other alignment options, the browser stops the current text flow, breaks the line, inserts the table beginning on a new line, and then restarts the text flow on a new line below the table.


Function:

Define a table

Attributes:

ALIGN ONCLICK

BACKGROUND

ONDBLCLICK

BGCOLOR ONKEYDOWN

BORDER ONKEYPRESS

BORDERCOLOR

 

ONKEYUP

BORDERCOLORDARK

ONMOUSEDOWN

BORDERCOLORLIGHT

ONMOUSEMOVE

CELLPADDING ONMOUSEOUT

Other books

Avowed (The Manipulation Trilogy Book 3) by Taylor, Alicia, Townson, Natalie
The Seersucker Whipsaw by Ross Thomas
A Cruel Courtship by Candace Robb
Low by Anna Quon
Miss Lizzie by Walter Satterthwait
The Comeback by Marlene Perez

© 100 Vampire Novels 2015 - 2024    Contact for me [email protected]