track

track
HTML track Element
NOTE: This new element is HTML5 and will be a standardized element in 2014.

The HTML <track> element is used to associate language subtitle tracks or text captioning tracks to the <audio> or <video> media elements. This is used to supply disabled people with text content to make your media more accessible, and to supply language subtitles for people who do not speak the language in the media.

The following example offers subtitles both in English and Italian for the video element. View the bottom of the page to see an example .vtt file.

HTML CODE EXAMPLE


<video controls="controls" width="600" height="400">
  <source src="skydive.mp4" type="video/mp4" />
  <track kind=subtitles src=skydive_en.vtt srclang=en label="English">
  <track kind=subtitles src=skydive_it.vtt srclang=it label="Italiano">
</video>

Related Posts :

  • pre pre HTML pre Element The HTML <pre> preformatted text element is used to preserve return… Read More...
  • param param HTML param Element The HTML <param> element is used to specify parameters that will… Read More...
  • rp rt ruby rp rt ruby HTML rp rt ruby Element NOTE: This new element is HTML5 and will be a standardized e… Read More...
  • q q HTML q Element The HTML <q> quotation element is used to quote text with quotation phr… Read More...
  • progress progress HTML progress Element NOTE: This new element is HTML5 and will be a standardized eleme… Read More...

0 Response to "track"

Post a Comment