I'm having trouble with the SRC portion of the tutorial (embarrasing)

Here’s my code:

<h2>CatPhotoApp</h2>

<main>

<img src= "http://www.freecatphotoapp.com/your-image.jpg" alt= "A business cat wearing a necktie.">

  <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>

I continue to get a message reading: Your image should have a src attribute that points to the kitten image.

I really can’t see what I’ve done wrong. Thanks for any and all help

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

First of all, please provide a link next time - we don’t have these all memorized. If you use the Get Help -> Ask for Help button, it will do it for you.

That being said, I don’t think that is the right URL. Read the description closely. I don’t know, if that doesn’t work, the space after “src=” might be screwing it up. Probably not, but it’s worth checking.

Thanks for the backtick advice, and editing the original post. I appreciate it!

Here’s a link to the lesson:

I’ve removed the space after the “src=” and I’m getting the same message.

OK, but what about the first thing that I said?

The description says:

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

This is what you have:

<img src= "http://www.freecatphotoapp.com/your-image.jpg" alt= "A business cat wearing a necktie.">

Do you see the problem?

@treyweatherman Hey there! The link is incorrect. You linked it to the example link instead of the link specified in the instructions.

Try src="https://www.bit.ly/fcc-relaxing-cat" and that should do it.

Also, remove the space in the alt attribute. After that, your code will run!

Thank you Kevin. You’re the man!

I am an idiot. Thank you for your help!

Ha, you’re not an idiot! I’ve done stuff like that before. Glad Kevin and I could help!

Yeah, stupid mistakes are part of being a programmer. You get better at spotting them and they get more subtle, but they never go away. Sometimes another set of eyes is exactly what you need. Seriously, in my old job I just to spin around to my cubicle mate and say, “This isn’t working and I can’t figure it out. What am I not seeing?” He’d do the same with me.

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