Although the HTML5 formal standard does not specify which format to use subtitles. But at present the comparison general is the WEBVTT (suffix. vtt), this each browser manufacturer all supports is relatively good.
Examples of 1,WEBVTT files
Webvtt
00:00:01.000--> 00:00:10.000
This is the first line of text, from 1th seconds to 10th seconds.
00:00:15.000--> 00:00:20.000
This is the second line of text, Welcome to Www.111cn.net
2, using the sample
(1) If there are more than one language subtitles can add multiple <track>, for users to switch to select
(2) The <track> that is marked as default is the caption that is used by defaults. If you do not use any subtitles by default, you do not set default.
<video controls Width= "height=" >
<source src= ". /hangge.mp4 "type=" Video/mp4 ">
<track src= "hangge.vtt" srclang= "en" kind= "subtitles" label= "Chinese" default>
<track src= "hangge_en.vtt" srclang= "en" kind= "subtitles" label= "中文版" >
</video>