HTML src property

HTML track src property HTML

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:

<video width="320" height="240" controls>
<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

HTML track src property HTML track src property HTML track src property HTML track src property HTML track src property

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

<track src="subtitles_en.vtt">

The property value

value describe
URL Specify the URL of the track.


HTML track src property HTML