I'm stuck on "src" coding

Hi , there!

So, I started studying and it was doing great so far. But, I’m stuck in this exercise, I’ve already searched for a mistake, eventhough I am sure the code is correct. It still asks for the “src” atribute, however, i have already written.
Also, I have disabled the ad blockers on my browser. And it still doesn’t work.

Can anyone help?

Thank you.

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

  **Your code so far**

<h2>CatPhotoApp</h2>
<main>
<img src="https://www.studiodaily.com/wp-content/uploads/2017/11/business-cat.jpg" alt="an image of a grumpy cat in a suit" />

<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>
  **Your browser information:**

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

Challenge: Add Images to Your Website

Link to the challenge:

Hey Emilia,

I’m really new to this too so I might be wrong but I think it’s because you’re closing the img tag with /> instead of just >

Cheers

Now set the src attribute so that it points to the url https://www.bit.ly/fcc-relaxing-cat
- The challenge

Notice the difference in the src attribute?

Hello!

Thank you for responding!

I forgot it there, but I’ve been trying with and without />.
Seems that nothing works! Also, I have erased and rewritten the entire code, and still says that needs de “src”, like it was not there already.

I’ll keep trying.

Thank you so much!

Cheers!

Hey,
Most of our browser we use are now being updated to support html 5 specification. So you don’t have to close the empty tags.
Just use img don’t use img /
Empty tags must be closed ( as you did in your code) for XML and XHTML which are more stricter version of HTML.
So simply remove / and it will work.

I think @MAZ1211 is right and it’s just that you’re using the example url instead of the one for the actual challenge.
Try changing the src to the challenge url and test again :slight_smile:

Yeah, when I change that url to the correct one, it passes for me, with and without the closing angle bracket.

You’ve got to add the link given in the instruction

Hi, Kevin! How are you?

Which one did you use? I changed to the one on the example, researched other ones, and still nothing works. It claims as if the “src” is incorrect.

Thanks!

I’m using the one that is listed here, in the instructions.

If you still can’t pass, please cut and paste the exact code that you are trying.

Hey!

Thanks, I’ve done that and this time worked!

Cheers!

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