HTML label Attribute Last Updated : 12 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The HTML label Attribute is used to specify the title of the Text Track. The title of the Text Track is used by the browser when listing available text tracks. It is used in <track> element. Syntax:<track label="English"> HTML label Attribute Supported Tags:<track><option><optgroup><menu><menuitem>HTML label Attribute ExampleExample: Here is the basic implementation of HTML label Attribute. HTML <!DOCTYPE html> <html> <head> <style> body { text-align: center; } h1 { color: green; } </style> </head> <body> <h1>GeeksforGeeks</h1> <h2>HTML label Attribute</h2> <video width="100" height="100" controls> <track src= "https://write.geeksforgeeks.org/wp-content/uploads/11.mp4" id="myTrack1" kind="subtitles" srclang="en" label="English" default> <source id="myTrack" src= "https://write.geeksforgeeks.org/wp-content/uploads/11.mp4" type="video/mp4"> </video> </body> </html> Output: Explanation:In the above example we sets up a video player with controls for playback.It includes a track element for subtitles in English.The source element specifies the video file.The styling centers the content and sets the color of the h1 element to green.HTML label Attribute Use Cases1.What is the use of label Attribute in HTML ?The label attribute in HTML is used to provide a text label or description for an element, such as an input field or a form control, improving accessibility and user experience.Supported BrowsersThe browsers supported by label Attribute are listed below: Google ChromeEdge FirefoxOperaSafari Comment More infoAdvertise with us M manaschhabra2 Follow Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction5 min readHTML Editors5 min readHTML Basics7 min readStructure & ElementsHTML Elements5 min readHTML Attributes8 min readHTML Headings4 min readHTML Paragraphs5 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists5 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks3 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables10 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms5 min readHTML5 Semantics6 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List15+ min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like