// Set the width of a table border to 2 pixels
const t = document.getElementById("TableA");
t.border = "2";HTMLTableElement: border property / notebook
HTMLTableElement: border property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.