Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:

Describe your issue in detail here. I am unable to turn the words in p element into link by adding opening and closing anchor.

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 < href="cat photos"> 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Edg/119.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 12

The correct syntax to turn words into link is as follows:

<a href="https://www.google.com">Search</a>

Refer the above code and make changes in your code accordingly.
Hope this helps!

Welcome to the community @chmhasan !

I have provided the example from the step.

<p>I think <a href="https://www.freecodecamp.org">freeCodeCamp</a> is great.</p>

Please follow the syntax above and provided by @Shambhavi ?

Please note how the anchor touches freeCodeCamp on both sides.

It is important not to add, delete, nor change anything other than adding the anchor with the correct href attribute and its correct url provided in the instructions.

Note: The anchor in the example is specific to the example and cannot be copied and pasted into the step. It is important to use the information in the instructions.

I hope this, along with the great guidance of @Shambhavi , helps you move on in your coding journey.

Happy coding!

1 Like

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