Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Simple Website Text Editors and HTML Images and Lists

Ronnie McDowall
Ronnie McDowall
2,513 Points

Problems with the cupcake jpg

Hi, can't get past this challenge. It keeps telling me I have entered the wrong path. But I have no other info to enter other than what's in front of me. How do I access the img files?

Thanks

4 Answers

Jason Slabbers
Jason Slabbers
4,447 Points

Can you add your code? So we can see how you approach the image.

Ronnie McDowall
Ronnie McDowall
2,513 Points

Ok, this is my text so far. Just wondering... the img file containing all the images. How can I download this? Thanks

<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  </head>

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

Ronnie McDowall I edited your post with the markdown to embed code in the forum.If you click edit above you will see how it is done.

The question is asking you to do the following "We've placed an image named 'cupcake.jpg' in a directory named 'img'. Add the image to the body of the document." So this is telling you the name of the image and the folder it is inside so the following code is required to link to that image

<img src="img/cupcake.jpg">
Ronnie McDowall
Ronnie McDowall
2,513 Points

Thanks Adam, but I have already tried this and still get the same answer, beginning to wonder if the rest of my coding is correct, or maybe an incompatible editor or something.

<!DOCTYPE HTML>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  </head>

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

Try refreshing the browser, sometimes that is all that is needed to restart the code engine. Also try to keep your comments as comments to the person you are replying not as answers. Again I will add markdown for your code to be embedded correctly.

Ronnie McDowall
Ronnie McDowall
2,513 Points

Thanks Adam, Nice to know there's help out there.

Any time! :)