0
can you put images outside a body tag?
I can do this to link the tree picture to google: <html> <head> <title>first page</title> </head> <body> <a href = "http://www.google.com"> <img src="http://www.sololearn.com/images/tree.jpg" alt="" /> </a> </body> </html> but, when I use just the link tag with the image nothing happens without being in the body tag, however the link tag by itself does work with text, and again trying to link with the image without the body does not work. what's going on here, is it something with the syntax? I hope this makes sense.
3 odpowiedzi
+ 2
no you can't
0
you have to take image from folder in which you saved your html files
0
Body tag is a parent of (include) any visable content on your page. It has to be inside the <body> where it belongs