Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Hi I’m confused, it seems to be telling me two things the first is this:
The link’s text should be cat photos . You have either omitted the text or have a typo.

when I type in “cat photos” it give me this:
After nesting the anchor (a ) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

can you tell me where I’m going wrong?

  **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 cat photos.
      <a href="https://freecatphotoapp.com"> Click here to view more 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 12

Link to the challenge:

The archer text must only be ‘cat photos’, but the full text of the p element must be ‘Click here to view more cat photos’.

I updated it to show:

<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.
      </a> 
      </p>

But it’s still telling me:

The link’s text should be cat photos . You have either omitted the text or have a typo.

The period should not be part of the anchor text

Tell us what’s happening:
ok what am I missing?? the link text that I created IS “cat photos” but I keep being told it’s wrong and that the link text needs to be “cat photos”???

  **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">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 12

Link to the challenge:

Hooray, thank you!! I knew I was getting caught up on something simple that I just wasn’t seeing

1 Like

Also not sure if this still happens, but try not to space the anchor opening tag after the paragraph texts. It might not be a problem in this code, but some of the lessons I did in past did give a error code for that reason.

  1. List item
1 Like

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