Learn HTML by Building a Cat Photo App - Step 12

ughhh

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more https://freecatphotoapp.com
    <a href="https://freecatphotoapp.com">cat photos
    <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/103.0.0.0 Safari/537.36

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

Link to the challenge:

You’re not that far off. Remember, the p and a elements need both an opening and closing tag. I see the opening tag for each but not the closing tag.

You seem to have added a stray “https://freecatphotoapp.com” to the sentence. Is there a reason you did that? I don’t think the instructions asked you to add any new text to the sentence, only to turn the words “cat photos” into a link.

idk , im just a bit confused rn , iv’e tried so many different ways

If you make changes and it’s still not working then you need to paste your updated HTML in here so we can see what you did. To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.

Please, how do i turn the word “cat photos” into a link? please I’m confused since yesterday.

Hi @AbuTuraab @Midnight1

To turn the word cat photos into a link you would need an anchor element. Please read more on the following article

Don’t for get to close your element using closing tags. Don’t leave opening tags alone

Still Stuck?

Please provide code to your latest attempt if it still doesn’t work. Enclose your code using triple backticks like so:

```html
paste code here
```

This will make us understand what your problem is and your difficulties in solving the question.

Cheers :grin:

1 Like

Thanks man! I’m very grateful. Done