13. Images & Links (HTML & CSS)


My code below keeps returning as incorrect - please can you advise what is wrong?


<!DOCTYPE html>
	<img src="http://statera.com/wp-content/uploads/2014/08/AWS-logo.png">
	<a href="https://www.codeacademy.com" /><img src="https://www.sumologic.com/wp-content/uploads/2016/04/logo-amazon-cloudfront.png" /></a>


<a href="https://www.codeacademy.com" />

anchor elements (<a>) are not self closing

1 Like

Sorry I don’t follow? I’ve tried:

<a href="https://www.codeacademy.com" /></a><img src="https://www.sumologic.com/wp-content/uploads/2016/04/logo-amazon-cloudfront.png" />

And this is still saying it is incorrect

the forward slash in the anchor opening tag makes it a self-closing tag, but anchor elements aren’t self closing

1 Like

Mine runs as well but says it’s incorrect must be a bug.

I’m not even using an anchor…all code is right but this is a bug.

In index.html, transform the image on your page into a link by wrapping the image element with an anchor element. Set the target attribute so that the link opens in a new window.

Use the same URL as before. can some one please help me out with this because i have tried but it keeps on asking “Did you wrap the image element with an anchor tag” which i did.

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