In the latest Safari Tech Preview it’s now possible to use MP4 files in <img>
tags. Intended use case is short, muted, looping video. Colin Bendell digs deeper into this.
By enabling true video formats (like MP4) to be included in
<img>
tags, Safari Technology Preview has fixed performance and UX problems. With it, our micro-form videos can be small and efficient (like MP4s delivered via the<video>
tag) and they can can be easily preloaded, autoplayed, and shared (like our old friend, the GIF).