HTMLTableElement: rules property

Deprecated

Avoid using this feature in new projects. Some table styling attributes have no effect. They are superseded by CSS. This feature may be a candidate for removal from web standards or browsers.

The HTMLTableElement.rules property indicates which cell borders to render in the table.

Value

One of the following:

none

No rules

groups

Lines between groups only

rows

Lines between rows

cols

Lines between cols

all

Lines between all cells

Examples

js
// Turn on all the internal borders of a table
const t = document.getElementById("TableID");
t.rules = "all";

Specifications

Specification
HTML
# dom-table-rules

Browser compatibility