MDN self-hosted library · e01.org

HTMLTableElement: border property

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

js
// Set the width of a table border to 2 pixels
const t = document.getElementById("TableA");
t.border = "2";