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

Cupcake Image

We've placed an image named 'cupcake.jpg' in a directory named 'img'. Add the image to the body of the document.. I keep getting error that says double check your image path. Not sure what I'm missing.

2 Answers

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

Hi Angela,

This error basically means that your img link is looking at the wrong source.

You might have something like this?:

<img src="cupcake.jpg" alt="I'm a sad cupcake...">

You might need to change it to something like this:

<img src="img/cupcake.jpg" alt="I'm a happy cupcake!">

In this example I am looking for the image source (src) in the img folder (img/) for an image called cupcake.jpg (img/cupcake.jpg)

Hope this helps :D

This is what it looks like:

<!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Smells Like Bakin' Cupcake Company</title> </head>

<body> <img src="img.cupcake.jpg" alt="I'm a happy cupcake">
</body> </html>

John Steer-Fowler
John Steer-Fowler
Courses Plus Student 11,734 Points

I can't see any of your HTML Angela,

Please refer to the 'Markdown Cheatsheet' for help on how to show your HTML in this discussion.