Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Hello everyone, having trouble with this one. So when i put the (<a href) if i leave a space inbetween it erases the image so im guessing i gotta leave it as (<ahref) but if i leave it like that it keeps telling me
( Your anchor (a) element should have an opening tag. Opening tags have this syntax: <elementName>)
Your code so far

<html>
  <body>
    <h1>CatPhotoApp</h1>
    <main>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a href="https://freecatphotoapp.com><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 15

Link to the challenge:

Your code looks good to me. Can’t you submit it?

Missing end quote on the href value?

1 Like

no, if i try submitting it how it looks here, it gives me an error saying i might have deleted the img element

1 Like

Typo - no trailing "

got it, thank yall. that was it, missing the end quotes

1 Like