This forum is now read-only. Please use our new forums at discuss.codecademy.com.

HTML Basics Forum

View Course » View Exercise

161 points
B5b37d5d4882937b77d71b3e858d736d?s=140&d=retro
Submitted by
NineTail_525b3186abf821fc7100c23e_de
almost 4 years ago

Why isn't my image in link working 12/13

What am I doing wrong???

Images and links
Good work! Let's make sure you really understand images and links before we move on to the review.

Instructions
Between the <body> tags, add two images using the <img> tag. One should be a link; the other should not. The link can go anywhere you want.
After your two images, create a link that's just a line of text. It can link anywhere you want.


<!DOCTYPE html>
<html>
    <head>
        <title></title>
    </head>
    <body>
         <a href="http://images6.fanpop.com/image/photos/34300000/NARUTO-SHIPPUDEN-naruto-shippuuden-34326791-1022-569.jpg"><image src="http://2.bp.blogspot.com/-P3htk3XRboQ/UjVout5Dy_I/AAAAAAAAALA/tw77Md_3qR8/s400/konoha-naruto-shippuden-by-animeranmalatino-on-deviantart-fotoku.info.jpg"/></a>
    </body>
</html>

0 votes

permalink

i could be wrong but it looks like you have the command tag going to what looks like an image ??? i don't know if that would be a problem :S

it also looks like you have an extra '>' after your command tag. This is what i did and it seemed to work.

<a href="http://www.puppy.com.au/"  
<img src="http://images1.fanpop.com/images/photos/1900000/Puppy-3-dogs-1993801-1024-768.jpg"/></a>

64 points
525dfd16f10c60588a00106e_172858687
Submitted by
Erosha
almost 4 years ago

2 Comments

B5b37d5d4882937b77d71b3e858d736d?s=140&d=retro NineTail_525b3186abf821fc7100c23e_de almost 4 years ago

nope that extra ">" was where it should be, I'm guessing it's just a glitch.

1bdf2504137437aa876d6cfa41b34663?s=140&d=retro Lucie Ossola almost 3 years ago

No, you should have <img instead of <image


0 votes

permalink

this one worked for me

<body>
<a href="http://www.puppy.com.au/">
    <img src="http://cdn.bmwblog.com/wp-content/uploads/BMW-M3-GTS-Wallpaper-2911-655x436.jpg" /></a>
    <img src="http://cdn.bmwblog.com/wp-content/uploads/2015/08/BMW-Concept-M4-GTS-1900x1200-images-07-750x500.jpg" />
<a href = "ahahahaha"></a>  

</body>

977 points
E47adc35c4d287817552fdb3cea209d8?s=140&d=retro
Submitted by
ypt3
about 2 years ago


-1 votes

permalink

I have the same problem.

214 points
52af7ba552f86377b20000b8_899523360
Submitted by
ravi patel
almost 4 years ago

1 Comment

B5b37d5d4882937b77d71b3e858d736d?s=140&d=retro NineTail_525b3186abf821fc7100c23e_de almost 4 years ago

Ye, Im not sure what going on. I even tried to turn the picture into a link.