HTML CSS Bootstrap Javascript Icons Python
HTML References
HTML - Tag Reference HTML - Tag by Category HTML - Attributes HTML - Global Attributes HTML - Events HTML - Language Codes HTML - Country Codes HTML - URL Encoding HTTP Methods HTTP Status Codes <input> types
All HTML Tags
<!-- --> <!DOCTYPE> <a> <abbr> <acronym> <address> <applet> <area> <article> <aside> <audio> <b> <base> <basefont> <bdi> <bdo> <big> <blockquote> <body> <br> <button> <canvas> <caption> <center> <cite> <code> <col> <colgroup> <data> <datalist> <dd> <del> <details> <dfn> <dialog> <dir> <div> <dl> <dt> <em> <embed> <fieldset> <figcaption> <figure> <font> <footer> <form> <frame> <frameset> <h1> - <h6> <head> <header> <hr> <html> <i> <iframe> <img> <input> <ins> <kbd> <label> <legend> <li> <link> <main> <map> <mark> <meta> <meter> <nav> <noframes> <noscript> <object> <ol> <optgroup> <option> <output> <p> <param> <picture> <pre> <progress> <q> <rp> <rt> <ruby> <s> <samp> <script> <section> <select> <small> <source> <span> <strike> <strong> <style> <sub> <summary> <sup> <svg> <table> <tbody> <td> <template> <textarea> <tfoot> <th> <thead> <time> <title> <tr> <track> <tt> <u> <ul> <var> <video> <wbr>

HTML <track> tag

The HTML <track> element is used for defining captions, subtitles, and other content for <audio> and <video> element.

Run code

Browser compatibility

The numbers in the table specify the first browser version that fully supports the <track> element:

Element
<track> 23 31 12.1 6 10



Attributes

The following table shows the attributes that are specific to the <track> tag:

Attribute Value Description
default - Indicates that the track should be enabled unless the user's preferences indicate that another track is more appropriate
kind captions
chapters
descriptions
metadata
subtitles
Specifies the kind of text track
label text Specifies a user-readable title of the text track which is used by the browser when listing available text tracks
src URL Specifies the URL of the track file
srclang language-code Specifies the language of the track text data (required if kind="subtitles")

Global Attributes

The <track> tag supports the global attributes described in HTML Global Attributes Reference

Event Attributes

The <track> tag supports the event attributes described in HTML Events Reference

Last updated: Monday 01 Oct, 2018