Can't figure out the anchor 'text'

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?

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.

markdown_Forums

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

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

1 Like