+ 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'😊😊👍
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>
+ 5
Sure samik shah
<p align="center"> then your text </p>
Or you can too directly use center tag ✌️
Hope this helps✌️
+ 3
Use this in css-
Body{ text-align:center;}
+ 2
* inside a body tag
Html=
<p align="center">text</p>
Else,
<p><center>text</center></p>
+ 1
Thank u friends for your support😊😊
0
<body>
<p align: "center">Hello World</p>
</body>