You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name

Tell us what’s happening:
Describe your issue in detail here.
the below is how i coded and am getting an error Your img element should have an src attribute. You have either omitted the attribute or have a typo. Make sure there is a space between the element name and the attribute name.
i read on the forum but could not get a solution ,kindly help with thanks.

src “https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg”>

  **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> 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/102.0.0.0 Safari/537.36

Challenge: Step 8

Link to the challenge:

The “src” is an attribute of img. It should have a format of:

<img src="whatever the url is">

Thank you Kevin ,

you are of big help, i appreciate for your quick assistance , Cheers.

1 Like