Tell us what’s happening:
I have tried to pass the challenge labelled: “Basic HTML and HTML5: Link to External Pages with Anchor Elements”. I have tried using my own code, the code in the example video and the code in several of the challenge guide comments. I cannot for the life of me pass this challenge even using the spoiler code. The line I need help with is the last line of code. Is there something wrong with it? If so, what is it and how can I fix it?
The criteria for the challenge is:
a element should have the anchor text of “cat photos”.
-You need an
a element that links to
https://freecatphotoapp.com (this is the one I supposedly get wrong
a element should have a closing tag.
Edit: I’ve tried to nest the “a” element inside the “main” element. The result is the same. I can’t pass the challenge.
Solution: I was missing the “s” at the end of “htpp” thanks for the help!
Your code so far
<h2>CatPhotoApp</h2> <main> <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> <a href="http://freecatphotoapp.com">cat photos</a>
Your browser information:
User Agent is:
Mozilla/5.0 (X11; CrOS armv7l 13099.72.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.94 Safari/537.36.
Challenge: Link to External Pages with Anchor Elements
Link to the challenge: