1016 B
1016 B
title | localeTitle |
---|---|
P Align Attribute | P Alinhar Atributo |
P Alinhar Atributo
Importante
Este atributo não é suportado em HTML5. Recomenda-se usar a propriedade CSS text-align
.
Para alinhar o texto dentro de uma tag <p>
, esse atributo ajudará.
Sintaxe
<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>
<body>
<p align="center">Paragraph align attribute example</p>
</body>
</html>