Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

HTML The Definitive Guide (113 page)

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

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

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

Other books

Grizzly Love by Eve Langlais
The Ring of Winter by Lowder, James
Her Stolen Past by Eason, Lynette
Executive Intent by Dale Brown
Light of the Moon by David James
Maxwell’s House by M. J. Trow
Any Place I Hang My Hat by Susan Isaacs

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