Tell us what’s happening:
the code keeps on getting rejected what could be the problem?
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<!-- User Editable Region -->
<p> See more cat photos in our gallery <a href="https://freecatphotoapp.com">cat photos</a>.</p>
<!-- User Editable Region -->
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
Challenge: Learn HTML by Building a Cat Photo App - Step 12
In the p element, the text : cat photos, should be turned into a link. You need to wrap an anchor element around it. In the opening anchor tag, you’ve got to add a href attribute, the value of which will be the following; https://freecatphotoapp.com
After the word gallery, is where the p element ends.
You need to delete the extra words after the word gallery, around which you’ve wrapped the anchor element. Before the word gallery, there’s only one phrase of ‘cat photos’. That needs to be wrapped by an anchor element.
The link works, but I continue to get an error code- "After nesting the anchor (a) element, the only p element content visible in the browser should be -See more cat photos in our gallery. " (That’s the only “p” element content visible)
“Double check the text, spacing, or punctuation of both the p and nested anchor element.”
What’s the problem with the code? (And yes, I’ve read the suggested article) TIA