Learn HTML by Building a Cat Photo App - Step 11

it says that its not correct but i did what they said i needed to do
Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p> 
    <a=cat photos href="https://freecatphotoapp.com">click here to go to https://freecatphotoapp.com</a>
    <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14816.131.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 11

Link to the challenge:

The syntax highlighting on this line is letting you know that your syntax is wrong.

a is the type of the tag - you cannot set it equal to a value.

The instructions say

Add the anchor text cat photos to the anchor element. This will become the link’s text.

You need to put the phrase cat photos in between the opening tag (<a .....>) and the closing tag (</a>). Do not try to put it inside of the tags.

<a cat photos href="https://freecatphotoapp.com">click here to go to https://freecatphotoapp.com</a>

this is what i have now, its still incorrect

the link does work now but it still says its incorrect

Yes, this code fails because

  1. You put text inside of the opening tag like I said not to do

  2. Your text between the opening and closing tags is not what the instructions asked for

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 (').

where do i need to put the text then?

You need to put the required text in between the opening and closing a tags.

<a href="https://freecatphotoapp.com"> click here to go to cat photos https://freecatphotoapp.com</a>

this is what i have now but i cant get it to be correct

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 (').

That is because the text in between the opening and closing tags must exactly match.

Does the text you added:

exactly match the required text:

thanks it finally worked

1 Like