HTMLTableElement: align property
HTML DOM
HTML DOM
The **`HTMLTableElement.align`** property represents the
alignment of the table.
## Value
One of the following string values:
- `left`
- `center`
- `right`
## Examples
```js
// Set the alignment of a table
const t = document.getElementById("TableA");
t.align = "center";
```
## Specifications
## Browser compatibility
source: MDN Web Docs mirror · page
Cite this
"HTMLTableElement: align property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/HTMLTableElement/align JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy