Stuck with src attribute, couldn't identify what the problem is!

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

  **Your code so far**


<img src="" alt="A Relaxing Cat.">

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

Challenge: Add Images to Your Website

Link to the challenge:

Hi @tej_17 !

Welcome to the forum!

You are using the wrong url here

Here is the correct one from the directions.
Now set the src attribute so that it points to the url

1 Like

thanks for your response , but may I know how did you identified that I used a wrong one ??
I mean how will I know what kind of url I need to use further ?

A lot of people make this mistake where they misunderstand the instructions.

The url that you were using was for the example on how to create an img.

This is an excerpt from the directions.
An example of this would be:

<img src="">

But later on in the directions, it tells you do to this.
Let’s try to add an image to our website:

Within the existing main element, insert an img element before the existing p elements.

Now set the src attribute so that it points to the url

Like I said, most people make this mistake and copy the first url they see without reading the full directions.

The example code is never going to be the exact answer for the challenge.
That would be to easy. :grinning:

The example is to just show you how it is done.

Hope that makes sense.

1 Like

Thanks @jwilkins.oboe , I used that link but am still getting the same error.

Make sure you don’t have any extra spaces here

1 Like

thanks so much @jwilkins.oboe got it :grinning:

1 Like

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