Learn HTML by Building a Cat Photo Step 10

I have a problem. can’t pass the test.
I can’t figure out where is my mistake

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more cat photos.</p>
      <a href="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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

1 Like

It would be useful to know what the challenge is asking you to do.

1 Like

Step 10

You can link to another page with the anchor (a) element. For example, <a href='https://freecodecamp.org'></a> would link to freecodecamp.org.

Add an anchor element after the paragraph that links to https://freecatphotoapp.com. At this point, the link won’t show up in the preview.

Ok. You see it is teaching you how to link to another page using the anchor <a> element. So, below the <p> line, add an anchor element and make sure you give it an attribute of href that has a value of the url you want to link to.

1 Like

So I added the line
<a href="freecatphotoapp.com"></a>

You should copy the whole URL.

1 Like

I did, but still the error
<a href="https://freecatphotoapp.com"></a>

In addition, description suggests a single quote in the description, which confuses me even more.

Please post actual code instead of pictures.

1 Like

This passes for me, I’m on the lesson page. Maybe copy that line, then refresh, and paste it.

1 Like

My code that doesn’t work

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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>

Reset the lesson and write it again. It will pass.

1 Like

Test

Sorry, your code does not pass. Keep trying.
:sob: :sob: :sob:

What browser are you using?

Is your browser up to date?

Are you running any extensions?

1 Like

Launched Chrome without extensions, the test passed!

1 Like