Your a element should be nested with your new p element

Hello everyone Im new to free codecamp, Im getting this error: “Your a element should be nested within your new p element.” I have nested but maybe Im doing something wrong, can anyone help me?

Your code so far

<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
  .red-text {
    color: red;
  }

  h2 {
    font-family: Lobster, Monospace;
  }

  p {
    font-size: 16px;
    font-family: Monospace;
  }

  .thick-green-border {
    border-color: green;
    border-width: 10px;
    border-style: solid;
    border-radius: 50%;
  }

  .smaller-image {
    width: 100px;
  }
</style>

<h2 class="red-text">CatPhotoApp</h2>

<p> View more 
  <a href="http://freecatphotoapp.com">cat photos</a>  <!--My error is on this line of code here-->
</p>

<a href="http://www.freecatphotoapp.com">cat photos</a>

<img class="smaller-image thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. ">

<p class="red-text">Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p class="red-text">Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/nest-an-anchor-element-within-a-paragraph

You needed to read the instructions more carefully. You wrote a new anchor tag in there. They wanted you to move the existing one. It is made more confusing by the fact that the url for the example is so close to the one they want you to more. Redo it and use the anchor tag on line 31 (line 31 if you reset the code.) The existing one has “www.” on it which the error checker is looking for.

1 Like

I see, I only needed one a element, that’s right I did get confused because of how the elements were clsoe to each other like that
Thanks man!