HTML The Definitive Guide (113 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

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

Poacher Peril by J. Burchett
My Hero Bear by Emma Fisher
Cornered by Cupcakes by S.Y. Robins
The Poellenberg Inheritance by Evelyn Anthony
Sean by Desiree Wilder
Ending ELE (ELE Series) by Gober, Rebecca, Courtney Nuckels
Zorba the Hutt's Revenge by Paul Davids, Hollace Davids

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