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) HTML: The Structural Foundation of Web Pages and Applications Image Tags

PlaceIMG question

I'm wondering why I'm not getting a random picture when I refresh.

<header> <img src="http://placeimg.com/400/400/animals" alt="Drawing of Jane Smith" class="profile-image">

I figured it out. You need to hold ctrl when you click refresh....but why?

1 Answer

Kieran Barker
Kieran Barker
15,028 Points

The reason you're needing to hold Ctrl when you refresh is because your browser is caching the image. Hitting Ctrl+F5 refreshes your cache, and you therefore see a new image. If you just refresh normally without holding Ctrl, your cache is not refreshed, and therefore you see the cached image.

Thank you Kieran!