Home > Abakada: Back to Basics > Language References > HTML Element Attributes > ALIGN Attribute
Specifies the horizontal alignment of text content in a P element.
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.
This attribute has been deprecated in favor of CSS stylesheets.
This example illustrates rendering of the <p
> element in the possible alignment options.
Show me
P