Nest an Anchor Element within a Paragraph, what's wrong with my code?

Nest an Anchor Element within a Paragraph, what's wrong with my code?
0

#1

Tell us what’s happening:
I don’t know why it keeps getting error message? when I type View more and a blank space with all the right tags "

and it keeps giving me error msg saying ‘Your a element should <em>not</em> have the text “View more”.’ if I take off the words “View more” then I get the error msg saying ‘Your p element should have the text "View more " (with a space after it).’
My original code is like this I don’t know where is the mistake? ’ <p><a href=“http://freecatphotoapp.com” target="_blank">View more cat photos</a></p>’

Your code so far


<h2>CatPhotoApp</h2>
<main>
  <p><a href="http://freecatphotoapp.com" target="_blank">View more cat photos</a></p>
  
  <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>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0.

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


#2
 <p><a href="http://freecatphotoapp.com" target="_blank">View more cat photos</a></p>

The ask: The new paragraph should have text that says “View more cat photos”, where “cat photos” is a link, and the rest of the text is plain text.

So View more should not be in the link but it should be in the p tag.


#4

I didn’t fix the code for you. I gave you the information to fix the code in the last line:

So View more should not be in the link but it should be in the p tag.


#5

I see what you mean, I got it now thank you very much I appreciate :slight_smile: Instruction wasn’t clear enough on the tutorial page