HTML src property
The src property in the label is used to represent the address of the track, which must be defined.
Video elements with two subtitle tracks:
<source src="forrest_gump.mp4" type="video/mp4">
<source src="forrest_gump.ogg" type="video/ogg">
<track src="subtitles_en.vtt" kind="subtitles" src
label="English">
<track src="subtitles_no.vtt" kind="subtitles" srclang="no"
label="Norwegian">
</video>
Browser support
Internet Explorer 10, Opera, and Chrome support src properties.
Definitions and usages
The src property specifies the url of the track.
The difference between HTML 4.01 and HTML5
The label is the new label for HTML5.
Grammar
The property value
value | describe |
---|---|
URL | Specify the URL of the track. |
HTML