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

HTML Basics Forum

View Course » View Exercise

52 points
059b1fb6d1b735d664ba6042fb6ae726?s=140&d=retro
Submitted by
dwain c
over 4 years ago

img src and image for link

Img src and putting image src around image. Yea I am new to this, when I put my image in how do I place my link tags around the image. And when pasting images from other sites for practice I can only get image location to work when I copy and paste, just copying the image itself will not work when I paste it to my practice page in code academy. And where is a good place to get free images to copy.


0 votes

permalink

I got the link to work, though it showed the "a href " beginning tag then the image link. Need a little more practice on it. How do you access your saved material from your lessons. Thanks!

52 points
059b1fb6d1b735d664ba6042fb6ae726?s=140&d=retro
Submitted by
dwain c
over 4 years ago


0 votes

permalink

I got the solution with a detailed explaination :) So basically you have to have 2 images;one normal and one with a link.
I read this[http://www.codecademy.com/forum_questions/51379e0c5140ff2a9c001f81] and it gave me the idea to combine img with link this way

<a href = "the URL goes here"> <img src = "the URL of the image goes here"/> </a>

You have to make 3 different tags. The first is a normal img src tag with no link,the 2nd is the top example(img with a link), and the 3rd tag is a link that is a line of text that leads to anywhere. The 3rd tag is what people are missing. This isn't a hard challenge its just worded confusing.
Ok here is my code that worked:

<img src="http://i.istockimg.com/file_thumbview_approve/1354938/1/stock-photo-1354938-businesswoman-headache.jpg"/>
            <a href="http://www.istockphoto.com/stock-video-20819331-attractive-business-woman.php?st=b26dfbe"><img src="http://i.istockimg.com/file_thumbview_approve/1354938/1/stock-photo-1354938-businesswoman-headache.jpg"/></a>
            <a href="w"

Thanks,
A newb in training :)

404 points
8425c22a5e0c8f4d985a4932966bc1b9?s=140&d=retro
Submitted by
crazykid211
over 4 years ago