Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:

Please correct this code for me

Everyone loves cute cats online!

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>Everyone loves <a>cute cats<a/> online!</p>

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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/130.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

Hi! You should add href attribute to your a element.

1 Like

Hey Buddy, See here is the link address * https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg .*

Now you need to add this in href element.

Hope You Understand.

Hi there!

Also correct the closing anchor tag. It’s slash / is on the wrong side. It should be before a

Thank you for your help

1 Like

Thank you for your help. However, I don’t understand please explain further.

the a element is missing the href attribute so that it can link somewhere, look at the other a element you created previously for an example

1 Like

Tell us what’s happening:

Please tell me the problem with tthis code

Everyone loves cute cats online!

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>Everyone loves <a href>cute cats <a/> online!</p>

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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/130.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

See the line number 8 in the challenge editor for example and follow the instructions.