Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
After coding this appears in result
After nesting the anchor (a ) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

Where is the error in my code?
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>
      <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:

Your preview should be look like this

Judging by your code you have 2 cat photos words.

Hope you can figure it out!

You need to nest the cat photos part of the p element in the anchor tag rather than specifying cat photos in anchor tags once again

solved . thank you bro

1 Like

I don’t understand

Let’s suppose we have a title <h2>Welcome to freeCodeCamp.</h2> and we want to make the freeCodeCamp part of this title to be a link. What we are going to do is that we will nest freeCodeCamp into anchor tags and the code will go like follow:

<h2>Welcome to <a href="freecodecamp.org">freeCodeCamp</a>.</h2>

Hope that you have understood it now.

1 Like

Thanks i see my mistake.

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