Please help with my errors. I’m confused

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<a>

https://freecatphotoapp.com
</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 (iPhone; CPU iPhone OS 13_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1.1 Mobile/15E148 Safari/604.1.

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

Look at the <a> in the example:

<a href="https://freecodecamp.org">this links to freecodecamp.org</a>

Now look at yours:

<a>
https://freecatphotoapp.com
</a>

Does your look the same as the example?

I’m confused as to what I did wrong

The problem is in the anchor tag. The URL needs to be mentioned in the “href” attribute of the anchor tag and whatever that’s written between the opening and closing of the tag is shown on the page!
<a href="your_url"> Content_to_be_shown_on_page </a>

I don’t understand… how should I change the code?

<a href="your_url"> Content_to_be_shown_on_page </a>

1 Like

What should I change the code too? Sorry for my ignitance

In the above code where you have written https://freecatphotoapp.com is the place where you write content to be shown on the page.
the actual code should look like the following
<a href='https://freecatphotoapp.com'> this links to freecodecamp.org</a>

Hope it cleared your query!

1 Like