Learn HTML by Building a Cat Photo App - Step 11

Tell us what’s happening:
Describe your issue in detail here.
I need help with step 11 can’t pass through I don’t know why

  **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 href="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 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0

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

Link to the challenge:

It doesn’t appear you have made any changes to the HTML. Do you have a specific question about the instructions?

Hi, I have an issue on this challenge, it is asked to have only one (a) element and I did as the instruction says but still doesn’t let me pass to the next step.
Here is my code :

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
    <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>

Here is the task for your reference :

Your code should only contain one anchor (a) element. Remove any extra anchor elements.

Hi AKG, welcome to the community!

Have you tried restarting the challenge step? If you have, can you describe how you wrote your code? I can’t manage to find the error message you got :disguised_face:

Hi, I have an issue on this challenge, it is asked to have only one (a) element and I did as the instruction says but still doesn’t let me pass to the next step.
Here is my code :

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</p>
    <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>

Here is the task for your reference :

Your code should only contain one anchor (a) element. Remove any extra anchor elements.

Thank you for the welcome !
Yes I restarted, this is step 12, where I must add an element to link cat photos, that part is mine but FCC says there is more than one (a) element! Honestly, I don’t see any extra anchor element there, do you ?

Ya, the hint is not as helpful as it could be. The anchor element needs both an opening and closing tag because you can put stuff inside of it. Look closely at your link. Do you have both an opening and closing a tag?

1 Like

That was a good point, it worked. I’m so grateful.

Pro tip: if a comment on your post solved your problem, you can click the “solution” button at the end next to the reactions to let everyone know the user solved your problem :slight_smile:

1 Like

Thank you, I couldn’t find “solution” button just I see like , share , flag and bookmark and Reply at the end.

I think it’s only available if you’re the original poster, look for it the next time you post a problem