kind

object kind extends Attr

How the text track is meant to be used. If omitted the default kind is <code>subtitles</code>. If the attribute is not present, it will use the <code>subtitles</code>. If the attribute contains an invalid value, it will use <code>metadata</code>. (Versions of Chrome earlier than 52 treated an invalid value as <code>subtitles</code>.) The following keywords are allowed:

  • <code>subtitles</code>
  • Subtitles provide translation of content that cannot be understood by the viewer. For example dialogue or text that is not English in an English language film.
  • Subtitles may contain additional content, usually extra background information. For example the text at the beginning of the Star Wars films, or the date, time, and location of a scene.
  • <code>captions</code>
  • Closed captions provide a transcription and possibly a translation of audio.
  • It may include important non-verbal information such as music cues or sound effects. It may indicate the cue's source (e.g. music, text, character).
  • Suitable for users who are deaf or when the sound is muted.
  • <code>descriptions</code>
  • Textual description of the video content.
  • Suitable for users who are blind or where the video cannot be seen.
  • <code>chapters</code>
  • Chapter titles are intended to be used when the user is navigating the media resource.
  • <code>metadata</code>
  • Tracks used by scripts. Not visible to the user.
trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Types

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: String): AttrPair[_kind_attr]
@inline
def :=(v: Option[String]): OptionalAttrPair[_kind_attr]