954 B
954 B
title |
---|
P Align Attribute |
P Align Attribute
Important
This attribute is not supported in HTML5. It is recommended to use the text-align
CSS property.
To align the text inside a <p>
tag, this attribute will help.
Syntax
<p align="position">Lorem Ipsum...</p>
Attributes
- left - Text aligns to the left
- right - Text aligns to the right
- center - Text aligns to the center
- justify - All lines of text have equal width
Example
<html>
<body>
<p align="center">Paragraph align attribute example</p>
</body>
</html>