asp.net.ph

Skip Navigation LinksHome > Abakada: Back to Basics > Language References > HTML Element Attributes > ALIGN Attribute

ALIGN Attribute | align Property


Specifies the horizontal alignment of text content in a P element.

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

This attribute has been deprecated in favor of CSS stylesheets.

Example

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

 Show me 

Applies To

P



Check out related books at Amazon

© 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