<a> tags not functioning correctly


#1

6.link em up

Oops, try again. Make sure you wrap each tag in tags!


<!DOCTYPE html>
<html>
	<head>
		<link type="text/css" rel="stylesheet" href="stylesheet.css" />
		<title>My Photo Page</title>
	</head>
	<body><table> 
	<thead>
	<th>My fav Anime Characters</th>
	<tr>

<a href="http://codecademy.com"><td><img src="http://i.imgur.com/UaqMQSW.png"/></a></td>

<a href="http://codecademy.com"><td><img src="http://vignette1.wikia.nocookie.net/fairytail/images/2/21/Lucy_mugshot.jpg/revision/latest?cb=20120428091603"/></a></td>

<a href="http://codecademy.com"/><td>/><img src="http://orig01.deviantart.net/ae68/f/2013/284/1/6/junko_enoshima__render__by_tomokinomajoo-d6q2jho.png"/></a></td>
    </tr>
	<tr>
<a href="http://codecademy.com"><td> <img src="https://encrypted-tbn2.gstatic.com/images?q=tbn:ANd9GcSxDThtwLP4NaWnzb7Vp5yFMkqsju4lj37FQyz_qdTBB0f9kMaWcA"/></a></td>

	<a href="http://codecademy.com"> <td> <img src="https://encrypted-tbn3.gstatic.com/images?q=tbn:ANd9GcTcqYxQ1U1oq6IaP0KYzEvjnSQ4gvQv9nZheyD8rNH9PddYKexjvw"/></a></td>
	
<a href="http://codecademy.com"><td><img src="https://s-media-cache-ak0.pinimg.com/564x/3d/f8/99/3df8993a009711833f961d66c6eeba46.jpg"/></a></td>

	<tr>
	<a href="http://codecademy.com"><td><img src="http://www.anime-planet.com/images/characters/natsu_dragneel_1415.jpg"/> </a></td>
	
	<a href="http://codecademy.com"><td><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrmKMCHOUH4BittBn1CJy7H-IyQ8XQ25ti8XpI5JQN8vOEznK7"/></a>
	
	<a href="http://codecademy.com"><td><img src="http://www.anime-planet.com/images/characters/thumbs/asuka_kudou_46496.jpg"/> </a></td>

	</thead>
	</body>
</html>


#2

Hi
you are mixing a little bit all the tags :slight_smile: For example you write for the first image

<a href="..."> <td> <img src="..."/> </a> </td> ### incorrect

here we see that inside the <a> tag, you open a <td> which is closed after </a> whereas it should be opened before <a>, like in the following line

<td> <a href="...">  <img src="..."/>  </a> </td>  ### correct

I hope that it will help


#3

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