how to display text at the middle of the page using html only? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

how to display text at the middle of the page using html only?

10th Jun 2018, 12:10 PM
Amaan Mobeen
Amaan Mobeen - avatar
4 Answers
+ 4
You can use the align attribute.
10th Jun 2018, 12:21 PM
Akash Pal
Akash Pal - avatar
+ 1
You can't. As Akash Pal suggested you can use the align attribute but that's CSS.
11th Jun 2018, 3:55 PM
Ben Allen (Njinx)
Ben Allen (Njinx) - avatar
0
You can do it with help of br tag.
10th Jun 2018, 12:18 PM
Meet Mehta
Meet Mehta - avatar
0
do something like this: <p align=“center”>Hello world!</p>
10th Jan 2020, 4:00 PM
Hanna K.
Hanna K. - avatar