Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening:

I am trying to add the img tag and src tag with a link but it does not recognize it - Any help on what I’m doing wrong?

Your code so far

https://cdn.freecodecamp.org/curriculm/cat-photo-app/relaxing-cat.jpg

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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/curriculm/cat-photo-app/relaxing-cat.jpg

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 8

Hi there and welcome to our community!

HTML attributes usually have the syntax attribute="value". The attribute as a whole should be inside the opening tag of the element. You have put the attribute name inside the img tag but not the value and not using the correct syntax.

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