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

Adding Images

I can't get the pictures into my website. For the cupcake company. I have the exact same script as Nick Pettit. I have a folder named img in my css folder. I can not understand what I am doing wrong. Can someone tell me the exact steps I need to do for my images to go into the site. Thanks so much.

2 Answers

The 2 most common mistakes when images are not showing up are a typo with the file names or using the wrong file path.

So triple check that you are using the exact name of the image files in your HTML, if that doesn't resolve the issue, check the file paths.

Here's a tutorial on file paths that should get you going.

Let us know how you are getting along with this here in this thread.

<img src="css folder name/img/name of image.jpg" alt="some_text">

check out one of the links below:

Aaron Ackerman -

As a general rule of thumb using the W3Schools site as a reference is considered a worst practice. You can read more about this over at W3Fools

W3Schools are not affiliated with the W3C in any way and are using its trademark without it's permissions.

Instead you should be using:

Thanks for the info.