HTMLTableElement: rules property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("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
{{Specifications}}
Browser compatibility
{{Compat}}