Learn HTML by Building a Cat Photo App - Step 14

It says that the img element should have a src value and it might be accidentally deleted but my src value is obviously there it isn’t missing or anything

  This is my code:)
<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>

hi there,
have a look at your opening (a) tag. It should have a "> "at the end. And there should be no space between it and the <img> -element.

1 Like

The href wouldn’t work if I put a > after the first (a) tag:'>

<a href="https://freecatphotoapp.com"   <----------- there .

Before creating the img element you should have finished the element before, don’t you think so?