Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
Iam constantly receiving this area message but can not figure out why i have to remove closing tags. as i have removed and replaced over and over please help
here is the error message i constanly receive.
" You should only add one opening anchor (a) tag. Please remove any extras. Your anchor (a) element should have a closing tag. Closing tags have a/ just after the < character. You should only add one closing anchor (a) tag. Please remove any extras. // tests completed // console output [TypeError: Cannot read properties of null (reading ‘length’)] [TypeError: Cannot read properties of null (reading ‘length’)]"

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more</p> 
       <a target="_blank" href="https://freecatphotoapp.com"/>
      <p>cat photos  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."/>
      <a href="https://freecatphotoapp.com" />

<!-- User Editable Region -->

    </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/113.0.0.0 Safari/537.36

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

Link to the challenge:

Hey!

You are supposed to enclose this image in an anchor element.

<a href="link"><img src="image.link"</a>

hello and welcome to fcc forum :slight_smile:

  • this “a” tag needs to enclose “img” tag

lets refer to instructions

Turn the image into a link by surrounding it with necessary element tags. Use https://freecatphotoapp.com as the anchor’s href attribute value.

  • you need to surround “img” with an “anchor” tag currently its not

address that change and it should be alright, happy learning :slight_smile:

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