MDN self-hosted library · e01.org

HTMLTableElement: rules property

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

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