Help with 2. html 10/15 step


#1

I am not understanding how to properly wrap an image in order to make it a link to a new site on a different tab.


Replace this line with your code. 

 <a 
  <img src="https://s3.amazonaws.com/codecademy-content/courses/web-101/web101-image_brownbear.jpg" alt="Brown Bear"target="https://en.wikipedia.org/wiki/Brown_bear">Brown Bear</a> />


#2

Making an image work as a link is pretty simple. An easy way to remember is first make a text link:
<a href="URL">text here</a>

Then add the attribute target="_blank" to make it open in a new tab:
<a href="URL" target="_blank">text here</a>

Now we replace the "text" with the image code:
<img src="image URL" />

aaaand it should look like this!
<a href="URL" target="_blank"> <img src="image URL" /> </a>


#3

Hello what is wrong with my code .It doesn't display image

<!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." <br />There are many subspecies within the brown bear species, including the Atlas bear and the Himalayan brown bear.</p>
  <a href="https://en.wikipedia.org/wiki/Brown_bear" target="_blank">Learn More</a>
  <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://s3.amazonaws.com/codecademy-content/courses/web-101/web101 image_brownbear.jpg" target="_blank"> <img src="#" alt="A brown bear"> </a>
  
</body> 
</html>

#4

Je ne comprend ou est le problème. I don't anderstand:


#5

I tried this which seemed to work; my image was at the bottom of the page and I added the code below the picture is still there but has now turned into a link.

a brown bear


#6

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