Our img element should have an src attribute

Tell us what’s happening:
Describe your issue in detail here.

  **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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0.1 Safari/605.1.15

Challenge: Step 8

Link to the challenge:

Hi @apanni92,

Try looking at the example once more :

<img src="https://www.your-image-source.com/your-image.jpg">

And look at your code :

What’s wrong ?

1 Like

src= " url " , should be an attr. of img. and in doublequotes as well.

1 Like