Problem With Anchor?


It should be quite simple, adding an image into an anchor tag so that it opens the link to wikipedia in a new tab. I did it how it says to in the "Learn" section but it seems as though I am not doing it correctly as I am still receiving an error message that says, "Did you wrap the image element with an anchor tag?" My code is below.

<!DOCTYPE html>
  <title>Animals Around the World</title>
  <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>
  <a href="" target="_blank"><img src="" alt="A Brown Bear"/></a>
  <p>The following are subspecies of bears:</p>
    <li>Nelsoni (extinct)</li>
  <p>The following countries have the largest populations of brown bears:</p>
    <li>United States</li>


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