Learn HTML & CSS: Part I Can't figure out why my code isn't being accepted


#1

I'm trying to get my code accepted and it keeps saying I'm not wrapping the image in an anchor tag, but I am. The preview works as expected.

  <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>

What am I doing wrong?


#2

I was learning on the old HTML/CSS module and now am on this same as you are, just beyond where you are and it's very unclear. The previous version was much better and more thorough. Perhaps that content is now going to be the pay-for module. We'll see.


#3

Try not indenting your code.

<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>

If that doesn't work, perhaps try using another browser?


#4

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