How can I put the title in the middle | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How can I put the title in the middle

hey guys I've got question In this code https://code.sololearn.com/WiQC7sO6IGiT/?ref=app how can I put the title in the center. #guys I Enter the align="center" but somehow it didn't work or did I make a mistake?

14th Jul 2020, 11:57 AM
reza mousavi
reza mousavi - avatar
10 Answers
+ 3
https://code.sololearn.com/WRTfhrx1IH18/?ref=app Nilesh center tag not supported in HTML5 reza mousavi 👍🏻
14th Jul 2020, 12:03 PM
Shahghasi Adil
Shahghasi Adil - avatar
+ 5
Use css
15th Jul 2020, 9:22 PM
Sonic
Sonic - avatar
+ 4
Use this :<h1 align="center">About Arsenal</h1>
14th Jul 2020, 12:02 PM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 4
Then p is in centre but not h1
14th Jul 2020, 12:06 PM
Oma Falk
Oma Falk - avatar
14th Jul 2020, 12:10 PM
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜
˜”*°•.˜”*°• Mohan 333 •°*”˜.•°*”˜ - avatar
+ 3
Remove p and span, <h1 align="center">About Arsenal</h1> or add align center to h1 element instead adding to p,i am not sure why doesn't it work tho
14th Jul 2020, 11:59 AM
Abhay
Abhay - avatar
+ 3
so then why <p align="center" ></p> doesn't work?
14th Jul 2020, 12:04 PM
reza mousavi
reza mousavi - avatar
+ 3
reza mousavi its work u added inline span tag
14th Jul 2020, 12:05 PM
Shahghasi Adil
Shahghasi Adil - avatar
+ 2
S.Adil yes I got it. these guys changed the placements and I thought that it's on me.
14th Jul 2020, 12:07 PM
reza mousavi
reza mousavi - avatar
+ 2
hey Guys then the result is this If I want to keep the <h1> I have to add it to this one and if I delete it I can add it to <p> right?
14th Jul 2020, 12:16 PM
reza mousavi
reza mousavi - avatar