files/en-us/web/api/texttrack/kind/index.md
{{APIRef("WebVTT")}}
The kind read-only property of the {{domxref("TextTrack")}} interface returns the kind of text track this object represents. This decides how the track will be handled by a user agent.
A string. One of:
"subtitles"
"captions"
"descriptions"
"chapters"
"metadata"
In the following example the value of kind is printed to the console.
let video = document.querySelector("video");
let track = video.addTextTrack("captions", "Captions", "en");
track.mode = "showing";
console.log(track.kind);
{{Specifications}}
{{Compat}}