Files
freeCodeCamp/mock-guide/spanish/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

1.0 KiB

title, localeTitle
title localeTitle
P Align Attribute P Alinear atributo

P Alinear atributo

Importante

Este atributo no es compatible con HTML5. Se recomienda utilizar la propiedad CSS de text-align .

Para alinear el texto dentro de una etiqueta <p> , este atributo ayudará.

Sintaxis


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

Atributos

  • izquierda - el texto se alinea a la izquierda
  • derecha - el texto se alinea a la derecha
  • centro - el texto se alinea con el centro
  • justificar - Todas las líneas de texto tienen el mismo ancho

Ejemplo


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

Más información: