Can't figure out the anchor 'text'

Can't figure out the anchor 'text'
0

#1

This is the question:

Create an a element that links to http://freecatphotoapp.com and has “cat photos” as its anchor text.

Here’s my code:

<a href= "http://freecatphotoapp.com"> cat photos </a>

What am I doing wrong?


#2

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 easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


#3

Do you have an extraneous space before “cat photos”?


#4

No, it actually had nothing to do with the code. There was a missing < in the previous code! Thanks though.