How to do Linking at will part

I’m stuck on Linking at will because I am very confused on where the anchor ( / ) goes. It says to wrap it around the image link but still doesn’t work. Can anyone help please?

https://www.codecademy.com/courses/learn-html/lessons/html-document-standards/exercises/linking-at-will-html

Hi,
You should have the first part of your anchor element first, then the img bit (self-closing), then the closing part for the anchor;

e.g.

<a href="blah blah" target="_blank"><img src="blah blah"/></a> 

Hope that helps

You should also add a title attribute to your anchor tag and alt text to your image for accessibility

Ok, thanks very much to both of you for helping. I’m now finally pass the part

1 Like