Plz tell me what am i doing wrong here?

Tell us what’s happening:
Describe your issue in detail here.
It says your page should have an image element - I have put the URL which they gave as - <img src ‘Alt - a relaxing cat’
But it is not taking it I don’t know why, plz tell me what is wrong with this?
2nd point - it says ’ Your image should have an src attribute that points to the kitten image, I am unable to understand what I have to do in this
3rd it says - Your image element’s alt attribute should not be empty. I have put an alt - ’ a relaxing cat’

So basically plz tell me why am I not able to get this wrong

  **Your code so far**


<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main> <img scr- 'Alt - a relaxing cat'
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.77 Safari/537.36

Challenge: Add Images to Your Website

Link to the challenge:

<img scr-

That syntax is all incorrect, there’s a spelling mistake, a -, a space after that, no quotation marks. Look at the example: that’s correct syntax

Tried it, it doesn’t work :neutral_face::neutral_face:

Example code:

<img src="" alt="A business cat wearing a necktie.">

Your Code:

<img src- ‘Alt - a relaxing cat’

Can you spot the difference?

1 Like

Hi. I guess you are putting the code outside main. You’ve added the code after .
You need to put it before the < / m ain >

Also you have not added the > closing parenthesis.

Hope it works now.

(Ignore the spacing in the codes in case of copy pasting)

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.