Are the instructions wrong or inaccurate?

The instructions I am facing with nesting an Anchor element within a new paragraph element seem to be either experiencing a glitch or are unclear for me.

I ran my code and the following set of errors were given:

1.)Your p element should have the text "View more " (with a space after it).
2.)Your a element should be nested within your new p element.

My thoughts:
+I do believe that with the example I was given in the instructions, I think I have done a close simulation of it well.
+Isn’t my element nested WITHIN my

element in my code?

Your code so far


<h2>CatPhotoApp</h2>
<main>
  
  <a href="http://freecatphotoapp.com" target="_blank">cat photos</a>
  
  <img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
  
  <p>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>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>

</main>

  <p>
    View more   <a href="freecodecamp.org">cat photos</a>
  </p>


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/responsive-web-design/basic-html-and-html5/nest-an-anchor-element-within-a-paragraph

  • You should have updated the existing code to use the anchor element you already have.
  • You should not have html outside of the main element.
  • You have three spaces after “View more” instead of one.
  • The second link that you created (there should only be one) has the wrong href attribute.
1 Like