Abakada HTML Demo: P align Attribute


This example shows the effects of applying different values possible for the align attribute, when used with the P element.

The align attribute is used to specify, among others, the horizontal alignment of text content in a paragraph. Possible values are left, center, right and justify. While the align attribute on <p> tags has been deprecated in favor of CSS styles in HTML 5, some browsers still support it as evidenced by this example.

Click a button to change the paragraph's alignment.

<p align="center">
Options

View Source   Exit

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