Link 'em up! HELP


#1


https://www.codecademy.com/courses/web-beginner-en-zrZ6c/0/6?curriculum_id=50579fb998b470000202dc8b#
I cannot finish this exercise.


It tells me to wrap the "img" tag in "a" tag, so that when I click on an image, it should take me to another
website. That's what I did. I have checked for any misspelled urls, but it seems that it's not problem in that. I have closed all tags and checked that I have put every tag the exercise wants me to write. The error says: "Oops, try again. Make sure you wrap each tag in tags!". What's the problem in my code?


 
<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css" />
		<title>My Photo Page</title>
	</head>
	<body>
	<table>
	<thead>
	<th>Just a radnom table </th>
	</thead>
	<tr>
	<a href="http://www.tallest-buildings.com/">
	<td> <img src="http://2zpt4dwruy922flhqyznip50.wpengine.netdna-cdn.com/wp-content/uploads/2014/12/lock-and-stock-photos.jpg"/></td> </a>
	<a href="youtube.com">
	<td> <img src="https://bootstrapbay.com/blog/wp-content/uploads/2014/05/tookapic-stock-photos.jpg"/> </td> </a>
	<a href="www.wikipedia.com">
	<td> <img src="https://bootstrapbay.com/blog/wp-content/uploads/2014/05/stocksnap-free-stock-photos1.jpg"/></td> </a>
	</tr>
	<tr>
	<a href="www.facebook.com">
	<td> <img src="http://orig15.deviantart.net/740c/f/2007/129/7/4/stock_032__by_enchanted_stock.jpg"/> </td> </a>
	<a href="www.omegle.com">
	<td> <img src="https://upload.wikimedia.org/wikipedia/commons/0/05/C_Stock_at_Ladbroke_Grove_1.jpg"/> </td> </a>
	<a href="www.tumblr.com">
	<td> <img src="https://www.colourbox.com/preview/2867364-a-background-of-wood-stock.jpg"/> </td> </a>
	</tr>
	<tr>
	<a href="www.skype.com">
	<td> <img src="http://media02.hongkiat.com/fruits-vege-stock-photos/highres/fruitsvege-stock04.jpg"/> </td> </a>
	<a href="www.cet.rs">
	<td> <img src="http://platowebdesign.com/articles/wp-content/uploads/2014/10/public-domain-images-free-stock-photos-light-sky-silo-windows-lillyphotographer-1024x684.jpg"/> </td> </a>
	<a href="www.24kitchen.com">
	<td> <img src="http://i.ndtvimg.com/mt/cooks/2014-11/chicken-stock.jpg"/> </td> </a>
	</tr>
	</body>
</html>


#2

Remove all 'td' tags, it's enough to wrap images with 'a' tags.


#3

to wrap each <img> tag in <a></a> tags your code should look like

<a href="url"><img src="url"/></a>

#4

It's working, thank you!


#6

@elv1nas, i disagree with your answer. The table is part of the lesson, the <a></a> tags should have been inside the table cells:

<td>
  <a href="url"><img src="url"></a>
</td>

you shouldn't remove the td tags, just a bit of change to the nesting