Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->      
<p> click here to view more cat photos.<a href="https://freecatphotoapp.com"cat photos.</a></p>    
  <a href="https://freecatphotos.com"cat photos</a>   
      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

Hello there.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

what am i doing wrong in my code please guide me

You can turn most of the HTML elements into clickable links if you surround them with an anchor tag.
A link is is exactly what it sounds like, its a “link” to some other website or webpage i.e. when you click it, it takes you to some other resource on the internet.

You have created links in the previous challenges but you were only using normal text until now. for example:

<a href="link-to-a-website"> Website name </a>

Note that the user will only see “Website name” and when they click on it, the browser will take them to “link-to-a-wesbite” (assuming such a website exists).

The same concept applies to images. You can turn images into clickable links if you surround them with an a tag. the user will only see the image but it will also be a link to some other website.

For example:

<a href="a-random-link">
    <img src="link-to-an-image" />

compare this with your code here:

Hope this helps! :smile:

can you please show me my mistake like where i am wrong and what to do to make it right

Surround your img tag with this a tag. You’re also missing a > at the end of your opening a tag.

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