How to center a paragraph in HTML?

How to align to the center? I have tried and sometimes it works and sometimes it doesn't. What attribute should I use and how?

3rd Sep 2020, 12:55 AM
Daniel Morán
Daniel Morán - avatar
2 Answers
Something like this? <p align="center">WORDS</p>
3rd Sep 2020, 1:14 AM
Steven M
Steven M - avatar
For centering paragraph text in center text-align:center; For centering whole paragraph tag margin:0 auto;
3rd Sep 2020, 1:39 AM
丹ⓨㄩک廾 - avatar