HTMLTableElement: align property
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("HTML DOM")}}
The **HTMLTableElement.align** property represents the alignment of the table.
Value
One of the following string values:
leftcenterright
Examples
js
// Set the alignment of a table
const t = document.getElementById("TableA");
t.align = "center";Specifications
{{Specifications}}
Browser compatibility
{{Compat}}