The HTML playsinline attribute
Quick answer
The HTML playsinline attribute asks the browser to play the video inline rather than going fullscreen (mainly on iOS). It is used on the <video> element.
Overview
The playsinline attribute plays a video inline instead of fullscreen. It is used on the <video>, <audio>, <source> and <track> elements.
It configures native audio or video playback — the source, controls, autoplay and looping behavior, the poster image, and text tracks. It works with the <video>/<audio> elements and their nested <source> and <track> children.
Syntax
<video src="clip.mp4" autoplay muted playsinline></video>
Values
| Value |
|---|
| A boolean attribute — present or absent. |