Align attribute of <p> | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson

Align attribute of <p>

what does it mean the align attribute of <p> is not supported in HTML5? while they use it in this <p align="center">This is a text <br /> <hr width="10%" align="right" /> This is also a text. </p> Thanks in advance.

3rd Feb 2019, 8:11 PM
Hassan Mohamed Dahir
Hassan Mohamed Dahir - avatar
3 Answers
+ 2
Hej Hassan Mohamed Dahir , the align attribute remains supported for HTML5. If you face any issues, try loading your markup into an external CSS file.
3rd Feb 2019, 11:51 PM
Alex Nicolas Kessi
Alex Nicolas Kessi - avatar
+ 3
From what i know , you can align the <p> in HTML5.
3rd Feb 2019, 9:16 PM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 1
Thanks Alex? it was a comment I have seen below the section of align attribute.
5th Feb 2019, 7:22 AM
Hassan Mohamed Dahir
Hassan Mohamed Dahir - avatar