HTML kind Attribute

Beginner
6 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The kind attribute on <track> tells the browser how a timed text file is meant to be used — subtitles, captions, descriptions, chapters, or metadata. Place <track> inside <video> or <audio> and point src at a WebVTT (.vtt) file.

Pair it with srclang (required when kind="subtitles"), a human-readable label, and optionally default so one track starts enabled.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015 with the HTML <track> element.

Omit or mistype carefully.

Missing kind defaults to subtitles. An invalid value is treated as metadata (not shown as normal captions).

HTML Syntax

syntax.html
<track kind=" keyword" src="file.vtt" srclang="en" label="English">

keyword is one of subtitles, captions, descriptions, chapters, or metadata.

Attribute Values

Allowed keywords (from the HTML / MDN track model):

ValueDescriptionTry it
subtitlesDialogue translation/transcription when audio is available but not understood. Default if kind is omitted. Needs srclangTry it
captionsDialogue plus sound effects and other audio cues — for muted or hard-of-hearing viewingTry it
descriptionsText that describes the visuals (often spoken by assistive tech when video is not usable)Try it
chaptersChapter titles for navigating the media timelineTry it
metadataData for scripts — not shown as user-facing cues. Also used when kind is invalidTry it

Live Preview

Pick a kind, then play the video and open the player’s captions/CC menu. The track below updates to match.

Same .vtt file; only kind (and the menu label) change so you can compare roles.

Video + track

kind="subtitles" — dialogue when audio is available but not understood.

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Subtitles Track

Add an English WebVTT track with kind="subtitles" and mark it default.

HTML
<video controls width="320">
  <source src="/video/count.mp4" type="video/mp4">
  <track
    kind="subtitles"
    src="/video/count.vtt"
    srclang="en"
    label="English"
    default>
  Your browser does not support HTML video.
</video>
Try It Yourself

How It Works

  1. Host media + VTT. <source> loads the video; src on <track> loads the cues.
  2. Set kind. subtitles means translation/transcription of dialogue.
  3. Require language. For subtitles, srclang must be present (here en).
  4. Label + default. label appears in the menu; default turns this track on first.

Example 2 — Captions and a Second Language

Use captions for accessibility cues, and another subtitles track for Spanish.

HTML
<video controls width="320">
  <source src="/video/count.mp4" type="video/mp4">
  <track
    kind="captions"
    src="/video/count.vtt"
    srclang="en"
    label="English CC"
    default>
  <track
    kind="subtitles"
    src="/video/count_es.vtt"
    srclang="es"
    label="Español">
  Your browser does not support HTML video.
</video>
Try It Yourself

How It Works

  1. captions vs subtitles. Captions target missing/hard audio; subtitles target language understanding.
  2. Different files or languages. Separate .vtt + srclang keep tracks distinct.
  3. Unique combo. Do not repeat the same kind + srclang + label on one media element.
  4. One default. Only one track per media element should use default.

Example 3 — Chapters and Metadata

chapters help navigation; metadata is for scripts, not the captions menu.

HTML
<video controls width="320">
  <source src="/video/count.mp4" type="video/mp4">
  <track
    kind="chapters"
    src="/video/count.vtt"
    srclang="en"
    label="Chapters">
  <track
    kind="metadata"
    src="/video/count.vtt"
    srclang="en"
    label="App cues">
  Your browser does not support HTML video.
</video>
Try It Yourself

How It Works

  1. chapters mark titled sections for seeking (player support varies).
  2. metadata exposes cues to JavaScript — not as on-screen captions.
  3. Same VTT shape. WebVTT timing still applies; kind changes the role.
  4. Invalid kind → metadata. Typos silently hide tracks from normal CC menus.

Edge Cases & Pitfalls

Most surprises come from wrong keywords, missing srclang, or same-origin VTT rules.

default

Omitted vs invalid

No kind → subtitles. Bad value → metadata. Double-check spelling so tracks stay visible.

srclang

Subtitles require srclang

When kind="subtitles", set a valid BCP 47 tag (e.g. en, es). See srclang.

origin

VTT same-origin (or CORS)

Track src must be same-origin unless the parent media uses crossorigin and the server allows CORS.

unique

No duplicate kind + language + label

A media element cannot have two tracks with the same kind, srclang, and label.

compare

Captions are not only “CC styling”

captions is a content role (include non-speech audio). Styling cues with CSS ::cue is separate from kind.

Browser Support

kind is an HTML attribute on <track> in the browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

kind

Widely available since about July 2015 with HTML5 text tracks. Chrome, Firefox, Safari, Edge, and Opera support kind on track inside video and audio.

96% Global support (approx.)
Google Chrome 23+
Full support
Mozilla Firefox 31+
Full support
Apple Safari 6+
Full support
Microsoft Edge 12+
Full support
Opera 12.1+
Full support
Samsung Internet Modern
Full support
Internet Explorer 10+
Supported
kind on <track> Widely supported

Bottom line: Safe to use for captions and subtitles everywhere modern video works. Chapter UI still varies by player.

Key Takeaways

  • Role: classify a WebVTT track as subtitles, captions, descriptions, chapters, or metadata.
  • Element: only on <track> inside <video> or <audio>.
  • Defaults: omitted → subtitles; invalid → metadata.
  • Pair with: src, srclang, label, and optionally default.

One line: kind tells the player what your .vtt track is for — pick the keyword that matches the content.

Frequently Asked Questions

On a track element, kind tells the browser how the WebVTT file is meant to be used: subtitles, captions, descriptions, chapters, or metadata.
The track element, as a child of video or audio. It does not apply to source or other media children.
Subtitles translate or transcribe dialogue when audio is available but not understood. Captions also include sound effects and other audio cues for when sound is missing or hard to hear.
If omitted, the default is subtitles. If the value is invalid, the browser treats the track as metadata.
Yes when kind is subtitles — srclang is required. It is also good practice for captions and other spoken tracks so the player can list languages clearly.
Yes. Give each track a clear kind, srclang, and label. A media element must not have two tracks with the same kind, srclang, and label combination.

Next: label

Learn the label attribute for form controls, options, and track menus.

label tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful