Definition and Usage
The track> tag specifies an external text track for media such as a video element.
is used to specify subtitle files or other files containing text that are visible when the media is played.
Example
Play a video with subtitles:
<video width="320" height="240" controls="controls"> <source src="forrest_gump.mp4" type="video/mp4" /> <source src="forrest_gump.ogg" type="video/ogg" /> <track kind="subtitles" src="subs_chi.srt" srclang="zh" label="Chinese"> <track kind="subtitles" src="subs_eng.srt" srclang="en" label="English"> </video>
Between HTML 4.01 and HTML 5 Difference
The
Global attributes
The
Event Attributes
The
The above is the detailed content of How to use html track tag. For more information, please follow other related articles on the PHP Chinese website!