0

Is this HTML code correct ?

Please explain if this code is wrong. Will all the common browsers display this code without any problem? <!DOCTYPE html> <html> <body> <header>My page</header> </body> <head> <title>Is this code right?</title> </head> </html>

6th Nov 2020, 6:30 PM
Arpita Gautam
Arpita Gautam - avatar
2 Réponses
0
Wrong the <head>....</head> tag must be above the <body>....</body> tag
7th Nov 2020, 1:00 AM
Med Amine Fh
Med Amine Fh - avatar
0
Yeah, that's what I wanted to confirm if the order of <head> and <body> tags is mandatory ?
7th Nov 2020, 3:31 AM
Arpita Gautam
Arpita Gautam - avatar