Learn HTML by Building a Cat Photo App - Step 10

Tell us what’s happening:

step 10 of learn html, I’m asked to add an anchor element but href shows up red. I’ve tried it with another link, made sure theres no extra space and consulted Github Copilot and Gpt-4o, pasted the code even and it still shows up red.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>Everyone loves cute cats online!</p>
      <a href="www.freecatphotoapp.com"></a>

<!-- User Editable Region -->

      <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:133.0) Gecko/20100101 Firefox/133.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 10

Hello there!

Check the href attribute value, what you have is not correct.

1 Like

do you mean in the editor? that’s not marking an error, attributes are just highlighted in red, If you change to night mode you can see it’s not red anymore