0

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
3 ответов
0
Something like this? <p align="center">WORDS</p>
3rd Sep 2020, 1:14 AM
Steven M
Steven M - avatar
0
For centering paragraph text in center text-align:center; For centering whole paragraph tag margin:0 auto;
3rd Sep 2020, 1:39 AM
Ayush Kumar
Ayush Kumar - avatar