Firefox Tomorrow

web api instance property

HTMLTableElement: align property

View on MDN ↗

The HTMLTableElement.align property represents the alignment of the table.

Value

One of the following string values:

  • left
  • center
  • right

Examples

// Set the alignment of a table
const t = document.getElementById("TableA");
t.align = "center";

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.