Files
freeCodeCamp/mock-guide/english/html/attributes/p-align-attribute/index.md
Stuart Taylor 7da04a348b fix: Update packages and fix local dev (#26907)
<!-- 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.
2018-10-23 18:48:46 +05:30

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>

More Information: