Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
i am not able to understand what am i supposed to do hers

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 cat photos in our gallery.
        <a href="https://freecatphotoapp.com">cat photos</a>
      </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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

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

Link to the challenge:

You simply need to enclose the words ‘cat photos’ (within your p element) in anchor (a) tags. Then add the relevant href attribute to the opening anchor tag.

You have added an anchor element and duplicated the text from the p element. Move those anchor tags so that they surround the existing ‘cat photos’ text and get rid of the duplicate text.

like he said above:

cat photos

@ringoj66 @igorgetmeabrain
well guys i am not able to understand , where i have to edit :smiling_face_with_tear:

Here’s an example of how to turn the words My Website (within a p element) into a link:

<p>Please visit <a href="https://example.com">My Website</a> to see awesome stuff.</p>

This is a basic example of how to nest one HTML element within another. This is a very common and familiar concept once you get the hang of it.

2 Likes

@igorgetmeabrain
yes got it , thanks bro.