You need an a element that links to

Tell us what’s happening:
Describe your issue in detail here.
cat photos

" I need to create an a element that links to https://www.freecatphotoapp.com"
Can someone help me, please?
Your code so far


<h2>CatPhotoApp</h2>




<img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back.">
<main>

<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="https:/www.freecatphotoapp.com"> cat photos </a> 
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.101 Safari/537.36 Edg/91.0.864.48

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

Hi @Borbor !

The link is wrong.

Reread the instructions very carefully.
Create an a element that links to https://www.freecatphotoapp.com and has “cat photos” as its anchor text.

Here is the code @jwilkins.oboe!

<a href="https://www.freecatphotoapp.com"> This linky take you to freecatphotos.com</a>

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

The link is right but why did you change the text?

The instructions say to use the text of cat photos which is what you had earlier

Okay, thanks.
Next time I will do that rightly.

When you change the text back to cat photos then the test will pass. :grinning:

I just change the text. kindly find my result.

// running tests You need an

a

element that links to

https://www.freecatphotoapp.com

Your

a

element should have a closing tag. // tests completed

It would be more helpful if you posted your full updated code instead of just the anchor tag.

Thanks.
It just has it work for me. I have additional code that was causing the error!
I am so happy to have you around. :sweat_smile:

2 Likes

place an extra forward slash to validate that link you entered… :grinning_face_with_smiling_eyes:

ex: https://www.freecatphotoapp.com

have fun! :blush:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.