Build a Cat Photo App - Step 15 (anchor element)

Tell us what’s happening:

I have tried searching the Web for what’s going on, and I thought it was my anchor element causing the problem, but no matter how I mess with it, I can’t seem to get it to pass. It runs in other code editors (i.e., the image opens in a new tab). This is the error I’m getting: Your anchor (a ) element does not have a target attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names. AI says my code will work, so what’s happening here?

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p> Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg" target="_blank">cute cats</a> online!</p>

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64)Chrome/134.0.0.0 Safari/537.36

Challenge Information:

Build a Cat Photo App - Step 15

Hi.

Have a look at the syntax in the example code for adding a target attribute to an anchor element and apply that.

<a href="https://www.freecodecamp.org" target="_blank">freeCodeCamp</a>

this element needs the target attribute, it is the only one in the highlighted region