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
Jayme Smith
1,169 PointsCode 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
James Barnett
39,199 PointsJayme Smith - the source attribute for images is src not scr
Luke Buśk
21,598 PointsTo show the code u need to add tab or 4 spaces before text.
Jayme Smith
1,169 Points<img =scr"img/cupcake.jpg">
Jayme Smith
1,169 PointsYeah, 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.
Jayme Smith
1,169 PointsYeah, 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.
Luke Buśk
21,598 PointsTry to use http://codepen.io/pen then.
Kevin Korte
28,149 PointsAn 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">
Jayme Smith
1,169 PointsOmg thank you
simonfransham
1,096 Pointssimonfransham
1,096 PointsI have a question: Why is it scr in the lesson, but src in the task? thanks.
James Barnett
39,199 PointsJames Barnett
39,199 PointsSimon Fransham - Can you provide a screenshot of where it says
scrin lesson?simonfransham
1,096 Pointssimonfransham
1,096 Pointsthanks James. Sorry I've been off the studies for the summer. Back on it now. You are correct, it is src in the lesson.