Met Video Addtexttrack
# HTML DOM Video addTextTrack() Method
[ Video Object](#)
## Example
Add a new text track to a video:
```javascript
var x = document.getElementById("myVideo");
var y = x.addTextTrack("caption");
y.addCue(new TextTrackCue("Test text", 01.000, 04.000,"","","",true));
[Try it Yourself Β»](#)
* * *
## Definition and Usage
The addTextTrack() method creates and returns a new text track.
The new TextTrack object is added to the video/audio element's list of text tracks.
* * *
## Browser Support

The addTextTrack() method is not supported in any major browser.
* * *
## Syntax
_videoObject_.addTextTrack(_kind_,_label_,_language_)
## Parameter Values
| Value | Description |
| --- | --- |
| _kind_ | Specifies the type of the text track. Possible values: * "subtitles" * "caption" * "descriptions" * "chapters" * "metadata" |
| _label_ | A string value, specifying the label for the text track. Used to identify the text track for the user. |
| _language_ | A two-letter language code, specifying the language of the text track. To see all available language codes, please refer to our (#). |
## Technical Details
| Return Value: | A TextTrack object, representing the new text track. |
| --- |
* * Video Object](#)
YouTip