Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
The error says the code is wrong because " Your anchor (a ) element should be nested within the p element." but I already used the space bar twice as it indicates in past steps to nest an element, I don’t know what I’m doing wrong.

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more https://freecatphotoapp.com.</p>
      <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:

The step where you used the space bar to add two spaces was for indenting elements, not nesting them. To nest an element means to put it inside another element. This means that you put the new, nested element somewhere between the other elements opening and closing tags.

I would restart the step to get the original HTML back. You have already created a “cat photos” link below the p element by wrapping the words “cat photos” with opening and closing a tags. That’s the same thing you want to do to the words “cat photos” in the p element.

And then of course don’t forget to delete the original “cat photos” link below the p element.

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