How to Insert a Random Image For Web Design

by Matt Langford

If you are designing a site, image placeholders are necessary. Here's an easy way to include random (and changing) images in any size on any page.

Using this:

<img src="https://source.unsplash.com/random/600x400">

Will produce this:

A sample inlined image

You can change the image size in the code to what you'd like. Refresh to see a new image.