Learn HTML by Building a Cat Photo App - Step 15

Tell us what’s happening:
I cant seem to figure this out. My hint after getting it wrong is " you should have an img element with an src value of https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg . You may have accidentally deleted it. " BUT the thing is its not deleted its still

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 target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
       <a href="https://freecatphotoapp.com"<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">

<!-- User Editable Region -->

    </main>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36

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

Link to the challenge:

It might be you forgot you closing tag of anchor (a) tag?

I think “target_blank” should come after “href”

The target attribute is not required on this step

1 Like

yes i tried that and it says that i only need an opening anchor (a) tag and i should remove all extras, after removing it, there is still something wrong.

What is your current full code?

If that’s absolutely all of your code, then you should not have deleted everything else.

Every tag must have both < and >

Also, a closing anchor tag is mandatory

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

I’m sorry, I know nothing about coding and I think that is why I can’t seem to get this correct on my own.

This is my current code:

<a href="https://freecatphotoapp.com"</a> 

This seem to be incorrect as well but i don't  know why.

Where did your img element go?

This is a valid anchor element

Thank you for your help, I finally got it correct.

1 Like

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