asp.net.ph

Skip Navigation Links

ALIGN Attribute | align Property

Language References


Specifies the horizontal alignment of text content in a paragraph.

Applies To: P

Syntax


Inline <p align = left | center | right | justify...>
Script p.align = left | center | right | justify

Possible Values


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.

Remarks

NOTE: This attribute has been deprecated in favor of the CSS text-align property.

Example

This example illustrates rendering of the <p> element in the possible alignment options.

 Show me 

Applies To

P



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note