13. Images & Links (HTML & CSS)


#1

https://www.codecademy.com/courses/web-beginner-en-HZA3b/2/5?curriculum_id=50579fb998b470000202dc8b#

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

Thanks

<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
	<body>
	<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>
		
	</body>
</html>


#2

here:

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

anchor elements (<a>) are not self closing


#3

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


#4

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


#6

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


#7

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


#8

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.


#9

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