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

Image

Hi just a quick question for y'all. I just started out learning the html coding but I can't seem to get the image to work for the quiz. I swear I'm doing it right as I reviewed it over and over. The quiz ask to add an image under the folder 'img' the picture being called 'cupcake.jpg' . Here is how I typed it:

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


</body> 

I was thinking the the image is a self closing tag but closing it doesn't seem to work either.. Anyway any help would be much appreciated! Thanks!

Stone Preston
Stone Preston
42,016 Points

html tags dont show up in forum posts. You will have to format it using the markdown cheatsheet which is linked under the text box when you edit your question/post a new answer or comment.

1 Answer

Matthew Mascioni
Matthew Mascioni
20,444 Points

Hey Drew,

Just updated your post so your HTML tags show up ;) As Stone Preston mentioned, you need to format your code using the markdown cheat sheet. To define a code block, simply add 4 spaces before the line of code.

The img tag is a self-closing tag, but in this case, you're simply spelling the src attribute wrong. Fix that up, and you should be good!

Chase Lee
Chase Lee
29,275 Points

I like the examples in this post.