📅  最后修改于: 2020-11-04 00:46:15             🧑  作者: Mango
HTML
HTML
以下是有关HTML的一些规范
Display | None |
Start tag/End tag | Only start tag(End tag forbidden) |
Usage | HTML media |
HTML track Tag
Example of track tag
在上面的示例中,我们使用了flower.vtt文件在视频文件中添加字幕。以下是flower.vtt文件:
以下是一些基本步骤,可用于创建WEBVTT文件
现在,您的WEBVTT文件可以使用了。
Attribute | Value | Description |
---|---|---|
default | default | It specifies that the track should be enabled unless the user?s preferences indicate that another track is more important. |
kind | captions chapters descriptions metadata subtitles |
It specifies that which type of text track you want to add. |
label | text | It specifies the title of the text track. |
src | URL | It defines the URL of the track file. |
srclang | language_code | It defines the language of the track text content, such as English, Germany, etc. |
Element | Chrome | IE | Firefox | Opera | Safari |
Yes | Yes | Yes | Yes | Yes |