Step 12: Nesting an element into another element

Tell us what’s happening:
Describe your issue in detail here.
Hint given: Your anchor (a) element should be nested within the p element.

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

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

Challenge: Step 12

Link to the challenge:

Your p tag should not have a the link in front of it, remove that first, let the sentence remain. Your anchor tag shouldn’t be below the p tag remove that also, it should be inside the p tag wrapping “cat photos” just like you did with the anchor tag below the p tag. So your a tag which has also the href attribute in it would be before “cat photos” and the closing tag would come after “cat photos” but before the full-stop.

Thanks so much for the support.

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