It keep responding my (p) element should have a nested anchor.. how do i go about it please

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

  **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 <a href="https://freecatphotoapp.com">cat photos">target="_blank">
    <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 (Linux; Android 11; SM-A226B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.62 Mobile Safari/537.36

Challenge: Step 13

Link to the challenge:

<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos">target="_blank">`

You have some issues with the structure. You have an opening p tag, and you have an opening a tag (though the target should be in there). But then then you need a closing a tag and then a closing p tag.

It should look something like:

<p>the starting p text
  <a src="some url" target="some target">
    anchor text
  </a>
  ending p text
</p>

It doesn’t have to be spread on different lines there, but that helps to show the structure.

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