web api instance property
HTMLTableElement: border property
The HTMLTableElement.border property represents the
border width of the <table> element.
Value
A string representing the width of the border in pixels.
Examples
// Set the width of a table border to 2 pixels
const t = document.getElementById("TableA");
t.border = "2";
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.