How can I play a video inline on iOS?

Videos are often played automatically in full-screen mode on iOS devices such as the iPhone. However, this is not always desired and can be changed with the following instruction within the video tag.

<video src="file.mp4" playsinline>