Don't seem to know what is wrong with this code

Click here to view more cat photoscat photos

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos<a href="cat photos"></a></p>
    <img src="" alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Challenge: Step 12

Link to the challenge:

Hey @kennadu ,
check this line:

It should be:
<p>Click here to view more cat photos<a href="YOUR URL HERE">cat photos</a></p>


Thanks for the response. That is what i did before and it wasn’t passing the text. Currently this is the code and I am still getting an error message.

Click here to view more cat photoscat photos

Error message: After nesting the anchor (a ) element, the only p element content visible in the browser should be Click here to view more cat photos. Double check the text, spacing, or punctuation of both the p and nested anchor element.

oh, I see.
So, it would be:

<p>Click here to view more cat photos <a href="YOUR URL HERE">cat photos</a></p>

PS: The space was missing…

Hmmmm! Don’t even know what else to do. It’s still not passing.

This was the instruction …‘Turn the words cat photos located inside p element into a link using the same value for the href attribute as the link below the p element. The p element should show the same text in the browser, but the words cat photos should now be a link. Make sure to remove the a element with the text cat photos on the line below the p element.’
I don’t see anything wrong with the code yet I’m not passing.

Thanks @txt88. I appreciate your help but I have not made any headway though.

Hey I couldn’t post a reply earlier, but try this:

You just need to have some space.

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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