Learn HTML by Building a Cat Photo App - Step 15

hi there, I didn’t read the entire history of this thread so forgive me if I just jump in and repeat something you know already.

To turn an img into a link all you have to do is follow a specific pattern which is as below:

<a href="something"><img src="whatever"></a>

That is, when you reset the code and you are given a line that contains an img tag,
you must surround it with anchor tags as per my sample above.

You must follow this sample precisely (all brackets and quotes and equal signs and slashes etc should be listed exactly).

You must also replace the value of the href attribute with an actual URL which is provided to you in the exercise.

And that’s it.

I hope this helps.

1 Like

hi, please do not post any code solutions here.

OMG it worked! Thank you. I was putting the a href after the img <>!!! Now I know what it should look like. :slight_smile:

1 Like

I would suggest going back to step 12 and redoing that one as well.
You should practice till it becomes easy.

Thank you. I;'m going back to the beginning so it makes more sense. You’re a superstar.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.