Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

Code Challenge html: Images and Lists

Hmmm, must really not be seeing something obvious here.

The task says:

Assuming an 'img' directory with an image 'cupcake.jpg', add the image to the body of the document.

Right now I have: <img scr="img/cupcake.jpg">

But its not working. Can anyone give me a hand, here?

8 Answers

Jayme Smith - the source attribute for images is src not scr

I have a question: Why is it scr in the lesson, but src in the task? thanks.

Simon Fransham - Can you provide a screenshot of where it says scr in lesson?

thanks James. Sorry I've been off the studies for the summer. Back on it now. You are correct, it is src in the lesson.

To show the code u need to add tab or 4 spaces before text.

<img =scr"img/cupcake.jpg">

Yeah, I added 4 spaces before the code. Still doesn't seem to be showing it. Lol, it really shouldn't be that difficult, but thanks anyway.

Yeah, I added 4 spaces before the code. Still doesn't seem to be showing it. Lol, it really shouldn't be that difficult, but thanks anyway.

Try to use http://codepen.io/pen then.

An image will look like:

<img src="path/to/image.jpg">

it tells you that the cupcake.png image is in the img directory, so it would look something like:

<img src="img/cupcake.jpg">

Omg thank you