HTML and video and controls properties
When using the . .
Elements with browser default controls:
<source src="movie.mp4" type="video/mp4">
<source src="movie.ogg" type="video/ogg">
Your browser does not support the video tag.
</video>
Try it out . . .
Browser support
Controls properties are supported by all major browsers.
Note: Internet Explorer 8 and earlier versions of IE do not support the label.
Definitions and usages
The controls property is a boolean property.
The controls property states that the browser should provide playback controls for the video.
If this property is set, it is stated that there is no script control set by the author.
Browser controls should include:
- Play
- Time out
- Positioning
- Volume
- Switch full screen
- Subtitles (if available)
- Audio tracks (if available)
The difference between HTML 4.01 and HTML5
The label is a new HTML5 label.
The difference between HTML and XHTML
In XHTML, the property does not allow short writing, and the controls property must be defined as: slt;video controls."
Grammar
HTML and video. Tags