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 How to Make a Website Creating HTML Content Structure the Image Gallery

dsteelz
dsteelz
1,203 Points

Pictures wont load!

For some reason my picture will not display in my preview; rather, a black dot will appear where the picture should be. Why is this?

snapshot of workspace: https://w.trhou.se/98mxbt229n

2 Answers

Look CAREFULLY at line 24 of your code. Instead of writing "src", you used "scr". As a tip, remember that "src" means source AKA path to the source of the image you want to call in your code.

As another note, although you didn't specify an entry for the "alt" attribute, I would recommend doing that just for good practice. Maybe call it "numbers 1", for example.

Hope this helps!

dsteelz
dsteelz
1,203 Points

Thanks. I can't believe such a small error was the root of my problems. kudos for the quick response.

You're welcome. We all make those kinds of mistakes. It's all part of the learning process!