Pls help im getting this error im new at coding

Why is it not working ? The error says- You need an

a

element that links to

https://freecatphotoapp.com

-_________________________________________________________________
CODE

CatPhotoApp

href="catphotos"this links to https://freecatphotoapp.com

A cute orange cat lying on its back.

Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.

Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.

Your code so far


<h2>CatPhotoApp</h2>
<main>

<a> href="catphotos"this links to 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36.

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

1 Like

Hello! Welcome to the community :slight_smile:!

The error you have is that attributes need to be inside the <tag>:

<tag attribute="value" other-attribute="another-value">Content Displayed</tag>

In your case, the href must be between the <a and the >, not between <a> and </a>.

Does it help?

2 Likes

hello please do it like this <a href="catphotos"this links to https://freecatphotoapp.com> </a> not <a>href="catphotos"this links to https://freecatphotoapp.com</a>

2 Likes

exactly friend thats how t should be.

1 Like