Src not working

Tell us what’s happening:
Describe your issue in detail here.
I’ve added the src attribute and set it to the right url, but it still says it doesn’t pass and to check for typos but I’ve re-read it a thousand times and don’t see any errors. Is it a bug?

  **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/15.5 Safari/605.1.15

Challenge: Step 8

Link to the challenge:

A colon is not used to set the value for an attribute.

You should use =

Hi @gotel ,

An attribute always has the form :

name="value"

Check your img src attribute again :

1 Like