How can I add an a element that links to

Tell us what’s happening:

Your code so far


<img src="" 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>
<a href=''>'cat photos 'that links to </a>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36.

Challenge: Link to External Pages with Anchor Elements

Link to the challenge:

  1. Use double quote instead single quote to wrap the link address.

  2. The anchor text is cat photo, without quotes, not 'cat photos 'that links to

Hello there,

The example shows how to do it:

<a href="">this links to</a>

In the above example, the href is the link, and this links to is the anchor text.

Now, follow the instructions:

Create an a element that links to and has “cat photos” as its anchor text.

1 Like

thanks for your reply… i tried it but it still didnt work out

i’m following the instructions but it isnt working…they keep telling me i need an a element that links to

What is your current code?

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.

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


can i send a picture of my current code??

Preferably not. Screenshots should always be a last resort. It is very difficult to help from them.

1 Like

alright. I’m new at coding, web design and everything so i would ask you pardon me if i am not presenting my question correctly.

link to external pages with anchor element can I get an anchor element that links to ```

That’s the error message. We need to see your code.

<a href=’‘https://freecatphotoapp’’> ‘‘cat photos’’

that is my code

cat photos should not be in quotes.

http://freecatphotoapp is not a complete link.

Add .com in your link.

it worked…thank you nhcarrigan and abhinav-Gupta. i really appreciate you being here to help me.

Glad you were able to get it working!

Happy coding :upside_down_face: