Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
I have placed anchors around the words ‘cat photos’ when i test the code it says
the href is incorrect, but i havnt changed the href
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>cat photos</a> in our gallery.</p>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

<!-- 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 (Macintosh; Intel Mac OS X 10_15_7) 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:

You don’t have an href though

1 Like

The href value that is allready given belongs to the link of cat pictures. You want to link the words ‘cat photos’ so you should put an href attribute in the opening a tag of the text ‘cat photos’ with the address which is given in the steps instructions.

1 Like

its ok, i got it there! Never done this before so have no idea what im doing!

Doing something you have never done before is the first step to being awesome at it!

2 Likes

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