---
title: P Align Attribute
localeTitle: P Alinhar Atributo
---
## P Alinhar Atributo

### Importante

Este atributo não é suportado em HTML5. Recomenda-se usar a [propriedade CSS `text-align`](https://guide.freecodecamp.org/css/text-align) .

Para alinhar o texto dentro de uma tag `<p>` , esse atributo ajudará.

### Sintaxe

```html

<p align="position">Lorem Ipsum...</p> 
```

### Atributos

*   **à esquerda** - o texto alinha à esquerda
*   **à direita** - o texto alinha à direita
*   **center** - o texto alinha-se ao centro
*   **justificar** - Todas as linhas de texto têm largura igual

### Exemplo

```html

<html> 
 <body> 
 <p align="center">Paragraph align attribute example</p> 
 </body> 
 </html> 
```

#### Mais Informações:

*   [`text-align` CSS](https://guide.freecodecamp.org/css/text-align)
*   [W3 - especificação HTML 4.01](https://www.w3.org/TR/html401/struct/text.html#h-9.3.1)
*   [MDN - Alinhamento de texto CSS](https://developer.mozilla.org/en-US/docs/Web/CSS/text-align)