Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening:
Describe your issue in detail here.
SO IM having an issue with the src attribute. I have read it carefully and tried but still havent figured out which part I did it wrong. Thank you guys hope you have a good one!

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more cat photos in our gallery.</p>

<!-- User Editable Region -->

  <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"

<!-- User Editable Region -->


Your browser information:

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

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

Link to the challenge:

The img element is self-closing, so only needs one tag. What you have here essentially is two img elements, though the second one is not properly closed off as it is missing a closing angle bracket (>).
Your src attribute is correct.

So, remove the first img tag (as it is superfluous) and close off the other img element properly and all is good.

Welcome to FCC Forum!

It is appears you have an < img> above the one with the src.

If you remove it, the code should pass for you, I believe.

Happy coding!

thank you so much for such a detailed explanation.

yeah I passed the code. Just start to learn about this and loving it already. Thank you and have a good one

1 Like

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