align attribute | align property
Sets or retrieves the alignment of the object relative to the display or table.
Syntax
| HTML | <element align="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
-
Aligns to the center.
-
Aligns to the left and right edge.
-
Default. Aligns to the left edge.
-
Aligns to the right edge.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 11.3.2 (Deprecated)
Remarks
The default value for the th element is center.
The justify possible value is available only for the div, hn, and p elements.
See also
Show: