Name

BORDER — NN all IE all HTML 3.2

Synopsis

BORDER=”pixelCount"

Optional

The thickness (in pixels) of the border drawn around a TABLE element. If you set the BORDER attribute to any value, browsers by default render narrow borders around each of the cells inside the table. The thickness of internal borders between cells are defined by the CELLSPACING attribute of the TABLE element.

If you include only the BORDER attribute without assigning any value to it, the browser renders default-sized borders around the entire table and between cells, unless overridden by other attributes.

Browsers render the border in a 3-D style, with the border appearing to be raised around the flat content in the cells. Numerous other attributes affect the look of the border, including: BORDERCOLOR, BORDERCOLORDARK, BORDERCOLORLIGHT, FRAME, and RULES. The type of border rendered for tables is different from the borders defined by style sheet rules. You get better control of the border look by using the dedicated attributes of the TABLE element.

Example

<TABLE BORDER=1>...</TABLE>

Value

A positive integer value.

Default

0

Object Model Reference

IE

[window.]document.all.elementID.border

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.