Tell us what’s happening:
Describe your issue in detail here.
**Your code so far**
<!-- TODO: Add link to cat photos -->
<p> click here to view more <a href="https://freecatphotoapp.com".>cat photos</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/18.104.22.168 Safari/537.36
Challenge: Step 12
Link to the challenge:
Remember, a link has both an opening and closing tag.
Also, you might not pass because you have changed some of the other text (such as you changed “Click” to “click”). It is always best to only make the requested changes in the instructions and nothing more. Even the tiniest change that isn’t expected can cause the tests to fail. To be safe, you can always restart the step to make sure that you haven’t changed anything you shouldn’t have.
That makes sense. But then why is it telling me “your code should only contain one anchor (a ) element. Remove any extra anchor elements.” The last one I had a problem with I didn’t have to reset, I just figured out what I was doing wrong!
I’m guessing because in your code above you forgot to close off the link with a closing
</a> tag and so the tests didn’t think you had a link even though you had the beginning
<a> tag. The hint could possibly be a little better because it does sort of make it sound like you have more than one link tag when you didn’t even have one complete one.
I figured it out! I entered a closing (a) link before the closing (p) link!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.