// Turn on all the internal borders of a table
const t = document.getElementById("TableID");
t.rules = "all";HTMLTableElement: rules property / notebook
HTMLTableElement: rules property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.