Learn HTML by Building a Cat Photo App - Step 12

Can get to the next step. What’s my mistake here?
See the image below.

Your code so far

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

<!-- User Editable Region -->

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

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

Link to the challenge:

1 Like

Welcome to the community!
Below is what is provided at the start of this step.

<p>See more cat photos in our gallery.</p>
  <a href="https://freecatphotoapp.com">link to cat pictures</a>

The step asks that only the two words cat photos be turned into a link by placing anchors around only these words within the p element. It is important not to change anything else.
Below is an example of how it should appear, only you will use the instructions to complete the step.

Example using big dog as the words to anchor.

< p> The < opening anchor> big dog < /closing anchor> raced across the grass for the ball. < /p>

I hope this helps you!
Happy coding! : :slight_smile:

yes, that’s what I actually did first but then it says:

The challenge error is telling you what is wrong. You dont have an href in your anchor element

Your original code was better. You just needed to remove that space before cat and remove the space after photos

2 Likes

Hello!
As @Cody_Biggs has stated to you, the href attribute and its value url of https://freecatphotoapp.com need to be added to the opening anchor to pass this step.

I suggest using the code below to see how to add it, if you are unsure.

Happy coding! :slight_smile:

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