0

Centered header

I've noticed that, when I try to move a header with the code <h1>text</h1>, to the middle , with the help of the tag <p align="center"> , It does not move to the center of the page! What is causing this? I don't get error-message either. best regards from a complete newbie. my text goes like this: <html> <head> <title>My very first HTML-page!</title> </head> <body> <p align="center"> <h1>Welcome to my very first webpage!</h1> </p> </body> </html>

2nd Dec 2016, 5:21 PM
Emelie hammarström
Emelie hammarström - avatar
2 Answers
+ 1
the correct syntax is : <h1 style="align:center;"> your message </h1>
2nd Dec 2016, 6:17 PM
Bahha┣
Bahha┣ - avatar
+ 1
Thank you so much!
2nd Dec 2016, 6:52 PM
Emelie hammarström
Emelie hammarström - avatar