GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

HTMLTableElement: border property

HTML DOM

HTML DOM

The **`HTMLTableElement.border`** property represents the
border width of the table element.

## Value

A string representing the width of the border in pixels.

## Examples

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

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"HTMLTableElement: border property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/border

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·