<!DOCTYPE html> <html> <head> <title></title> </head> <body> <img src= " https://tse1.mm.bing.net/th?&id=OIP.M3306ca3485816e64165128181a9f803co0&w=303&h=169&c=0&pid=1.9&rs=0&p=0&r=0" /> <a href= " https://www.facebook.com/" > <img src= " https://tse1.mm.bing.net/th?&id=OIP.M7f5a39120a76535d004d28f666924de0o0&w=201&h=242&c=0&pid=1.9&rs=0&p=0&r=0" /> </a> <a href=https://www.facebook.com/> </a> </body> </html>
The "img" tag should be nested within "a" tag.
The second image is working fine. Note how it works and then apply your observation on the first image.
This will never work.
From nested I mean.
<a href="#"> <img src="#" /> </a>
I'm confused a little, your code doesn't isn't like the example it just closes right after. Nothing is in between the 's.
<!DOCTYPE html> <html> <head> <title></title> </head> <body> <a href="http://google.com" <img src="https://s3.amazonaws.com/codecademy-blog/assets/f3a16fb6.jpg" /></a> <img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg" /> </body> </html>
The first image is encapsulated within the a tags but its not doing anything when I click it. Unless I am missing something small but I can't seem to find it.
I don't know what just happened I just tried to post my code but the pictures came instead
<a> opening tag is missing the
as for posting your code, read this:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.