The HTML controls attribute
Quick answer
The HTML controls attribute shows the browser's built-in playback controls. It is used on the <audio> and <video> elements.
Overview
The controls attribute shows native media playback controls. 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" controls></video>
Values
| Value |
|---|
| A boolean attribute — present or absent. |