+ 3

How to write a text in center

(This is for beginners)Can anyone send a command with example on 'how to make a text in center'😊😊👍

16th Sep 2020, 2:15 PM
SHADOW
SHADOW - avatar
6 odpowiedzi
+ 2
<p class="center">Hi there</p> In the HTML In the css, p.center { text-align: center; } 2. You can also use «center» text «/center» 3. <p align=center>text</p>
16th Sep 2020, 2:25 PM
Nilesh
Nilesh - avatar
+ 5
Sure samik shah <p align="center"> then your text </p> Or you can too directly use center tag ✌️ Hope this helps✌️
16th Sep 2020, 2:18 PM
Piyush
Piyush - avatar
+ 3
Use this in css- Body{ text-align:center;}
16th Sep 2020, 2:16 PM
REO_LU
REO_LU - avatar
+ 2
* inside a body tag Html= <p align="center">text</p> Else, <p><center>text</center></p>
18th Sep 2020, 5:46 AM
K M Suneth K
K M Suneth K - avatar
+ 1
Thank u friends for your support😊😊
16th Sep 2020, 3:07 PM
SHADOW
SHADOW - avatar
0
<body> <p align: "center">Hello World</p> </body>
17th Sep 2020, 3:26 AM
Malan Kudakwashe Kapishe
Malan Kudakwashe Kapishe - avatar