<!-- Please follow this checklist and put an x in each of the boxes, like this: [x]. It will ensure that our team takes your pull request seriously. --> - [x] I have read [freeCodeCamp's contribution guidelines](https://github.com/freeCodeCamp/freeCodeCamp/blob/master/CONTRIBUTING.md). - [x] My pull request has a descriptive title (not a vague title like `Update index.md`) - [x] My pull request targets the `master` branch of freeCodeCamp.
954 B
954 B
title
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>