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:
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> |