Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

how to i turned a normal text to link?

Your code so far

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

<!-- User Editable Region -->

      <p> cat photos </p><a href="https://freecatphotoapp.com"</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 (X11; CrOS x86_64 14541.0.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

You have already turned normal text into a link in a previous step. Do you remember when you turned the text link to cat pictures into a link?

<a href="https://freecatphotoapp.com">link to cat pictures</a>

This is how you did it. You wrapped the text in an anchor element. In other words, you put an opening a tag before the text and a closing a tag after the text. You want to do the same thing to the text cat photos in the p element.

I would reset the step to get the original HTML back. The only thing you want to do is add those two a tags to turn cat photos into a link.

1 Like

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