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 Introduction to HTML and CSS (2016) Adding a New Web Page Write the CSS

charlie alton
seal-mask
.a{fill-rule:evenodd;}techdegree
charlie alton
Front End Web Development Techdegree Student 8,879 Points

My images aren't showing up on my website.

Whenever I use a placeholder image it will not show up.

Cameron Childres
Cameron Childres
11,820 Points

Hi Charlie,

Could you provide us with your code? It's hard to help without seeing what you're working on.

You can either take a snapshot of your workspace by clicking the camera icon in the top right and post the link that it generates or you can copy and paste your code here. If you copy/paste make sure to use the "markdown cheatsheet" linked below the comment box for formatting so it's easy to read.

1 Answer

Brent Palmer
Brent Palmer
8,779 Points

There are various reasons why this might happen from improperly referencing a directory, to code written incorrectly, to the image file itself not being hosted anywhere to pull from. When utilizing the img tag make sure you use the correct syntax of <img src="image_url"> and that the source equals a correct location in a directory or the url where the file is hosted. For example: <img src="https://source.unsplash.com/random">. But Cameron is right, this question is impossible to answer without more detail. - Hope this helps anyway.