Wrapping Element around Anchor Tag!


#1


Learn HTML & CSS: Part I 10. Linking at Will


I wrapped the anchor elements in my code but it still doesn't work for some strange reason!


<!DOCTYPE html>
<html>
<head>
  <title>Animals Around the World</title>
</head>
<body>
  <h1>The Brown Bear</h1>
<p>The brown bear (Ursus arctos) is native to parts of northern Eurasia and North America. Its conservation status is currently "Least Concern." There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.</p>
  <p>The following are subspecies of bears:</p>
  <ul>
    <li>Arctos</li>
    <li>Collarus</li>
    <li>Horribiliis</li>
    <li>Nelsoni (extinct)</li>   
  </ul>
  <p>The following countries have the largest  populations of brown bears:</p>
  <ol>
    <li>Russia</li>
    <li>United States</li>
    <li>Canada</li>
  </ol>
 <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank"><img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" alt="A brown bear"/></a>
  </body> 
</html>


#2

Be sure to follow the two steps: Delete the element in one step, then Run; wrap the image in the next step and Run.


#3

It doesnt work like that. Its only a one step instruction. the code above is perfect but it still has a red dot next to it.


#4

Can anyone else help? I might just rewrite the entire thing but I still think it wont help.


#5

It is because your missing the anchor from the previous step so it should look like this:

<!DOCTYPE html>
<html>
<head>
  <title>Animals Around the World</title>
</head>
<body>
  <h1>The Brown Bear</h1>
  <p>The brown bear (Ursus arctos) is native to parts of northern Eurasia and North America. Its conservation status is currently "Least Concern." There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.</p>
  <p>The following are subspecies of bears:</p>
  <ul>
    <li>Arctos</li>
    <li>Collarus</li>
    <li>Horribilis</li>
    <li>Nelsoni (extinct)</li>
  </ul>
  <p> The following countries have the largest populations of brown bears:</p>
  <ol>
    <li>Russia</li>
    <li>United States</li>
    <li>Canada</li>
  </ol>
  	<a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">
      <img src=https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg alt="brown bear"/>
  	</a>
  <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">Learn More</a>
</body> 
</html>

#6

I fixed it! Make sure you put spaces between your alt and target tags!!


#7

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