GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

HTMLTableElement: rules property

HTML DOM

HTML DOM

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

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"HTMLTableElement: rules property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/rules

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·