align attribute | align property
Sets or retrieves the alignment of the caption or legend.
This property is not supported for Windows Store apps built for Windows using JavaScript.
Syntax
| HTML | <element align="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
bottom
-
Aligns bottom-center.
center
-
Aligns center.
left
-
Aligns left.
right
-
Aligns right.
top
-
Aligns top-center.
Standards information
- Document Object Model (DOM) Level 1 Specification, Section 2.5.5
- HTML 4.01 Specification, Section 11.2.2 (Deprecated)
Remarks
The legend tag is used only within a fieldSet tag. The contents of the legend tag are displayed by overwriting the information in the top border of the fieldSet.
The caption tag is used only within a table tag. Its contents are displayed centered above the table and do not interact with the table border.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012