Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

I’m struggling with question #12. I’ve tried indenting the anchor and keeping it in line with the

, I’ve kept and removed the . after cat photos, I’ve closed the anchor, closed the p, removed the closed p (leaving only the closed anchor). I’ve added and removed the space between a and href and I’m still lost!

From my notes, I thought my anchor should look like
link text

but that’s not working under my

when I try to submit it it seems. Any hints on where I’m going wrong?

Thank you!

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more 
      <a href="https://freecatphotoapp.com">cat photos.</a>
      <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

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

Link to the challenge:

1 Like

The p element requires both an opening and closing tag. Do you have both? I think you might have accidentally removed one.

Also, do not include the period in the link text.

1 Like

Thank you! That fixed it. Removing the . and adding the closed

.

So both the a and p element need open and closing, and the period isn’t necessary it was just used to complete the sentence in the question, which I think just confused me. Thank you!

1 Like