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 Create Quiz Comment M manaschhabra2 Follow 0 Improve M manaschhabra2 Follow 0 Improve Article Tags : Web Technologies HTML HTML-Attributes Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 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 List5 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