Name
RULES — NN n/a IE 3 HTML 4
Synopsis
RULES=”rulesConstant"
Optional
Defines where (if at all) interior borders between cells are rendered
by the browser. In addition to setting the table to draw borders to
turn the cells into a matrix, you can also set borders to be drawn
only to separate rows, columns, or any sanctioned cell grouping
(THEAD
, TBODY
,
TFOOT
, COLGROUP
, or
COL
). The BORDER
attribute must
be present—either as a Boolean or set to a specific border
size—for any cell borders to be drawn.
Example
<TABLE BORDER RULES="groups">...</TABLE>
Value
Any one case-insensitive rules constant:
-
all
Renders borders around each cell
-
cols
Renders borders between columns only
-
groups
Renders borders between cell groups as defined by
THEAD
,TFOOT
,TBODY
,COLGROUP
, orCOL
elements-
none
Hides all interior borders
-
rows
Renders borders between rows only
Default
none
(when BORDER=0
);
all
(when BORDER
is any other
value).
Object Model Reference
- IE
[window.]document.all.elementID.rules
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.