Name
<table> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<table>...</table>
Defines the beginning and end of a table. The end tag is required, and its omission may cause the table not to render in some browsers.
Attributes
align=left|right|centerAligns the table within the text flow (same as
alignin the<img>tag). The default alignment isleft. Thecentervalue is not universally supported, so it is more reliable to center a table on a page using tags outside the table (such as<center>or<div>). This attribute has been deprecated by the W3C HTML 4.0 Specification in favor of style sheet positioning.background=urlSpecifies a graphic image to be tiled in the background of the table. In Internet Explorer 3.0 and higher, the image tiles behind the entire table. In Navigator 4.0, the tile repeats in each individual frame (although its support is not officially documented).
bgcolor=#rrggbborcolor nameSpecifies a background color for the entire table. Value is specified in hexadecimal RGB values or by color name.
border=numberSpecifies the width (in pixels) of the border around the table and its cells. Set it to
border=0to turn the borders off completely. The default value is 1. Adding the wordborderwithout a value results in a 1-pixel border.cellpadding=numberSets the amount of space inside the cell, in number of pixels, between the
cellborderand its contents. The default value is 1.cellspacing=numberSets the amount of space (in number of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access