HTML Attributes

HTML kind attribute

Classifies a text track. Captions include relevant sound cues; subtitles typically translate or transcribe dialogue. Missing kind defaults to subtitles. Applicable elements include: <track>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.

Formal Syntax & Structure

html syntaxhtml
kind="captions"

Parameters & Attributes

NameTypeDescription
kindenumerated: subtitles, captions, descriptions, chapters, metadataClassifies a text track. Captions include relevant sound cues; subtitles typically translate or transcribe dialogue. Missing kind defaults to subtitles.

Working Example

Example Snippethtml
<video controls src="lesson.mp4">  <track kind="captions" src="captions.vtt" srclang="en" label="English"></video>
HTML Reference