Learn HTML by Building a Cat Photo App - Step 12

Tell us what’s happening:
It keeps on saying I’ve omitted the href value or have a typo, I can’t seem to see where I made a problem. I can’t complete the code because I’ve been trying for numerous times to complete it but I’m not getting it right.

Your code so far

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

<!-- User Editable Region -->

      <p><a> href="https://freecatphotoapp.com"</a></p>
      <a href="https://freecatphotoapp.com">link to cat pictures</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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57

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

Link to the challenge:

This anchor element doesn’t have a href.

This is floating in the middle of nowhere and can’t help your anchor element know what to do.

It looks like you clobbered a lot of text you shouldn’t have. You don’t need to delete anything for this problem. You should only add an opening and closing anchor tag with the correct attributes.

I still don’t understand what to do cause it seems like I did everything you showed in the extract but it still says the same thing, please show me how its done step by step.

Can you show me where the href attribute is here?

Can you show me the code where you didn’t delete everything inside of the p element?

 <p>See more cat photos in our gallery.</p>
      <a href="https://freecatphotoapp.com">link to cat pictures</a>

I’ve edited your code 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 (').

Ok, you didn’t delete anything, but you also didn’t add anything.

You need to add an opening anchor tag before cat and a closing anchor tag after photos.

I’ve been trying to complete this code for 2 days now and failing each and everytime

Your code so far

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

<!-- User Editable Region -->

      <p>See more<a href="https://freecatphotosapp.com"</a> in our gallery.</p>
      <a href="https://freecatphotoapp.com">link to cat pictures</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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57

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

Link to the challenge:

You deleted the words cat photos. You must delete absolutely nothing at all.

Also, your opening anchor tag needs to have both a < and a >

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.