Nest an Anchor Element within a Paragraph ISSUSES

i HAVE EVERTHING CORRECT BUT ITS TELING ME THAT I HAVE TO HAVE A SPACE I KEEP PUTTING IT BUT NEVER GOING ANYWHERE? CAN SOME ONE HELP ME OUT

THANKS TOMMEY

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
 <p>  veiw more 
<a href="https://freecatphotoapp.com" target="_blank">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 ,<a hrif "https://freecodecamp.org>everywhere</a> 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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.150 Safari/537.36 Edg/88.0.705.68.

Challenge: Nest an Anchor Element within a Paragraph

Link to the challenge:

Well, if the test is failing, that probably means that you don’t have everything correct.

 <p>  veiw more 

You misspelled “view”.

When I fix that, it passes for me.

Yeah, I know it can be frustrating. These kind of things can drive you crazy. With time, you’ll get better at spotting them.

1 Like

Additionally, what exactly is an hrif attribute in line 8? :wink:
(even though that doesn’t prevent passing the test)

Also the ‘=’ is missing, as well as the " after the link

Yeah, that’s a good catch. It’s also missing the = sign, but neither of those seem to be causing the test to fail - just fixing the spelling of “view” gets it to pass.

Yeah, computers are unforgiving about spelling mistakes. Fortunately, when you get to “real world” app development, your code editor will catch most of those.

funnily in this challenge the computer is forgiving, in the sense, that it allows the first p tag to act in a way, that the challenge gets passed, even though it shouldn’t :smiley: .

Edit: Ok, the above is actually not true. The p tag is properly closed. oops

But yes, thank God for code editors!

It just depends on how the tests are written. In a test, you have to explicitly assert your expectation. I’m sure they mainly assert things specific to what is expected to change.

1 Like

Hello @ smithtommey47, your code is correct. I saw no error. But I think you just need to remove that space between your paragraph tag and the word “view” like this:

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

Good coding with freeCodeCamp!