Wrapping an image into a link


#1


https://www.codecademy.com/courses/learn-html-css/lessons/common-elements/exercises/link-at-will?action=lesson_resume


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>
<html>
<head>
  <title>Animals Around the World</title>
</head>
<body>
 <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>
  <ol>
    <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>
  </body> 
</html>


#2

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!


#3

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


#4

What is your error code though?


#5

here it is


#6


#7

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.


#8

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.


#9

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


#10

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!


#11

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