Learn HTML by Building a Cat Photo App - Step 8

Tell us what’s happening:

I am trying to add an image using the src element but it is not correct and I am not sure what I am missing

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

Your code so far

<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/curriculum/      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/125.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 8

you need to add to the opening tag before the >, add a space after img and write src there

1 Like

Tell us what’s happening:

cat photo step 8 inserting an image using the src element

Your code so far

<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/curriculum/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/125.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 8

Hello!
Your src value should be wrapped in quotation marks and your img closing bracket is missing. A closing bracket goes at the end of the element and looks like this - >
Example: <a href="#">