Wrapping an image into a link



Hey guys! how are doing? i am in a trouble with this lesson and i don't how to solve it would you please tell me which part of the code that i have written for wrapping an image into a link a incorrect?

Replace this line with your code. 
<!DOCTYPE html>
  <title>Animals Around the World</title>
 <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>
    <li> Russia </li>
   <li>  United State</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>


Strange, the code looks great to me. Could you post a screenshot and/or the error message?

One more thing, if you're using Chrome, try Firefox, as Chrome sometimes doesn't work.

Hope I can help!


Yes, me too! I always use firefox as you see in the picture below:


What is your error code though?


here it is



This is your target attribute.

The question says "Set the target attribute so that the link opens in a new window. Use the same URL as before." ( "https://en.wikipedia.org/wiki/Brown_bear").

Let me know if that solved it.


it's the same! i have already put it but i don't know what's wrong with it :frowning:
maybe i should report the bug.


The target shouldn't be "_blank", it should be "https://en.wikipedia.org/wiki/Brown_bear".


Hey guys!
thank you for your support! finally the system gave me the full and right code which was again amazing for me! it was exactly the same but with one difference in the spaces and lines! here are my code and the new code:
the system's code:

note1: the difference is only the lines as you can see! the haven't told me that the spaces or lines are this much effective!


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