Language References
Specifies the horizontal alignment of text content in a paragraph.
Inline |
<p align = left | center | right | justify...> |
Script |
p.align = left | center | right | justify |
left |
Left-align text content. |
center |
Center align text content. |
right |
Right-align text content. |
justify |
Justify text content. |
The property is read/write with a default value of left.
NOTE: This attribute has been deprecated in favor of the CSS text-align property.
This example illustrates rendering of the <p
> element in the possible alignment options.
Show me
P