Firefox Tomorrow

web api instance property

HTMLTableElement: rules property

View on MDN ↗

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

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.