+ 11

What tag should I use to align a text to center

23rd Jan 2019, 5:49 AM
Surafel
Surafel - avatar
10 ответов
+ 5
Hej Surafel Don't use a center tag. I’d advice you to use the text-alignment attribute on your paragraph’s class. .classname p { text-align: center; }
23rd Jan 2019, 12:51 PM
Alex Nicolas Kessi
Alex Nicolas Kessi - avatar
+ 11
Thanks for all of you
24th Jan 2019, 6:26 PM
Surafel
Surafel - avatar
+ 5
Three ways! <center> </center> OR <p align= “center”> </p> OR In CSS .text { text-align: center; }
24th Jan 2019, 1:19 AM
JTLZ
+ 3
<center>...</center>
23rd Jan 2019, 6:38 AM
Rowsej
Rowsej - avatar
+ 3
<div Align="center"> <p>Hello</p> </div>
15th Feb 2019, 6:25 AM
Aminu Muhammed
Aminu Muhammed - avatar
+ 2
better still you can use CSS syntax to style your html document...over and above using the html tags.
23rd Jan 2019, 3:35 PM
Benz
Benz - avatar
+ 2
align=“center”. this must be places in the tag for the text.
23rd Jan 2019, 9:23 PM
Christopher Boateng
Christopher Boateng - avatar
+ 2
Eyob Bezaneh please do not copy another user’s previous answer. 🐲JTLZ 🐲 [#Never Give Up!] look at the previous comment.
25th Jan 2019, 7:39 AM
Rowsej
Rowsej - avatar
+ 1
<center> </center> OR <p align= “center”> </p> OR In CSS .text { text-align: center; }
25th Jan 2019, 7:32 AM
Eyob Bezaneh
Eyob Bezaneh - avatar
0
<center> </center> is a tag used to display data in center ex : <center> This is center tag </center> align attribute is also available to display data in center Note : since it is attribute it must be in any of the tags ex <h1 align=“center”> This is center attribute </h1> In css text-align: center; ex <div> THIS IS SAMPLE </div> div { text-align: “center”; }
23rd Jan 2019, 8:13 AM
sree harsha
sree harsha - avatar