Step 8 challenge

challenge step 8:
am given a hint that a space should exist between the element and src but after doing so still i can not move to the next step.

  **Your code so far**

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos.</p>
    <img>
    <img 
    src= "https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg">
  </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/101.0.0.0 Safari/537.36

Challenge: Step 8

Link to the challenge:

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

You are not able to move to next step, because your duplicating the img element.

You should remove one of img attribute in the above syntax.

1 Like

Ditto to ksl1816. Unlike <p> and <body> and <html>. <img> doesn’t need another tag to close it. Like you need <p>Hello</p>. Image you just need one <img>. Google “self closing tags HTML” to get a list.

1 Like