Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed HTML Video and Audio!
You have completed HTML Video and Audio!
Preview
Caption files won't work without adding a track element. In this video, we'll learn how to use a WebVTT file as a text track.
HTML Elements
- <track> - The track element specifies timed text data for video and audio media.
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
It's not just going to magically appear in
the video that we want it to appear in,
0:00
we actually need to include it into our
HTML file, just like any other file.
0:03
So right here under video,
we're going to add
0:08
a new element that we haven't seen yet
called track.
0:12
So let's type out the track element, and
0:17
this is a self closing element
just like the sources.
0:20
And we'll label this with
the label attribute, and
0:24
we'll say, this is an English track.
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up