Learn HTML by Building a Cat Photo App - Step 14

I can’t see where the error is

  **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 href="https://freecatphotoapp.com" target="_blank">cat photos</a></p>
   <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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

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

Link to the challenge:

the cat image should becomes a link
like the smiley face in this link

Thanks Isabella ,
I make the change as you suggested , making the img a link . But no luck there . See below

CatPhotoApp

Cat Photos

Click here to view more A cute orange cat lying on its back.


<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" >
	   <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."/>
	 </a>
	
	</p>
   
  </main>
</body>
</html>
 <p>Click here to view more  <a href="https://freecatphotoapp.com" target="_blank">cat photos</a></p>
 <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

this from your first post

Add a href element before img src then closing tag for a element
Do not erase anything
the part:

Click here to view more cat photos

should still be there

Still no luck , could you check this one . I have restarted the Lesson.


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

Click Restart Step button
it will pop up box message asking Reset this lesson click the button below Reset this lesson
line 8 will be

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

before <img .. add a href element similar to line 7, just no need target =_blank
at the end of line 8 give a closing tag

1 Like

Thanks Isabella , It works ! :slight_smile:

1 Like

this was really helpful to me too. Thank you Isabella