Can you please help me I have been working on this for hours!

I have been trying to figure out how to do the a element that links to https://freecatphotoapp.com

Your code so far


<h2>CatPhotoApp</h2>
<main>
<a
href="https://freecatphotoapp.com "> this links to 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: <code>Mozilla/5.0 (Linux; Android 4.4.2; SM-T310) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.101 Safari/537.36</code>.
**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

Hi, this is what they want you to do.
<a href="http://freecatphotoapp.com" target="_blank">cat photos</a>

Welcome Sophie,

I have edited your post to be more readable.

The lesson wants you to make use of the a element to link the website. In general, an a tag has an href attribute (exactly as you have done), and the text between the opening <a> tag, and closing </a> tag.

The text the lesson is looking for is: cat photos (as you have done)

But, it seems you have put too much extra text: ’ this links to freecatphotoapp.com

Hope this helps.

1 Like

The instructions: “Create an a element that links to http://freecatphotoapp.com…”

What you have:
href="https://freecatphotoapp.com "

They are not the same url. should be http not https

2 Likes

When you input the link you put a space before the end appostrophe. remove the space and the link works. ex. href="https://freecatphotoapp.com "> is how you input it. I simply copied it and removed the space and it worked.

Thank you so much!:blush::blush::grinning::innocent:

1 Like