HTML The Definitive Guide (113 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

BOOK: HTML The Definitive Guide
8.6Mb 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

Heat of the Moment by Karen Foley
Shattered by Elizabeth Lee
Siete años en el Tíbet by Heinrich Harrer
Echo City by Tim Lebbon
Witness by Piper Davenport
Brothers' Tears by J. M. Gregson
Alien Deception by Tony Ruggiero

© FullEnglishBooks 2015 - 2024    Contact for me [email protected]