+ 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 Answers
+ 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>