The correct code for Link to External Pages with Anchor Elements

Tell us what’s happening:

cat photos
Is this not the right code for the Link to External Pages with Anchor Elements lesson?


<h2>CatPhotoApp</h2>
<main>
<a> href="https://freecatphotoapp.com">"cat photos"</a>


<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>

Your browser information:

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

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/link-to-external-pages-with-anchor-elements

No. You are closing your anchor tag, before you get to the “href…” part.
Also, to pass the test you’ll have to put “http://” and not “https://”.

Thank you. I will try the code again.

@ojanay
click here to go in google page
here is syntax: Untitled
you have to give link inside a tag and by clicking the text between a and /a tag will
redirect to the url.

This helped me too small mistakes we make :smile: