+ 1

Is there any mistake in this code?

It doesn't work. <DOCTYPE html> <html> <head> <title>image page</title> </head> <style> body{ backgroubd-image:url("https://websitesetup.org/wp-content/uploads/2015/02/WP-homepage.png"); background-color:gray; } </style> <body> </body> </html>

30th Jun 2017, 12:39 PM
A.RAHMAN
A.RAHMAN - avatar
7 ответов
+ 5
style should be inside the head tag doctype should have an exclamation mark in front of it typo in the body property, should be background-image
30th Jun 2017, 12:45 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
+ 4
inside html tag there can be only 2 main tags - head and body and nothing else. So the style element must be inside head or body and not direct child of html tag. This is the same as @Cheeze
30th Jun 2017, 12:50 PM
Siddharth Saraf
+ 2
You missed ! symbol in the doctype tag this is correct <!DOCTYPE html>
30th Jun 2017, 12:39 PM
Peshkawt Mahmood
Peshkawt Mahmood - avatar
+ 2
if its the same why do u even bother repeating after me
30th Jun 2017, 1:11 PM
David Sebastian Keshvi Illiakis
David Sebastian Keshvi Illiakis - avatar
0
style tag inside the head tag.
30th Jun 2017, 12:55 PM
ussefshahid
ussefshahid - avatar
0
The problem is the image not showing up ;(
30th Jun 2017, 1:25 PM
A.RAHMAN
A.RAHMAN - avatar
0
This contains the correcttions needed https://code.sololearn.com/WYDVr0YfFAES/?ref=app
30th Jun 2017, 1:47 PM
josh mizzi
josh mizzi - avatar