HTML <label> Tag Last Updated : 11 Jul, 2025 Comments Improve Suggest changes Like Article Like Report The <label> HTML element represents a caption for a form element in a user interface. It improves accessibility by linking text to form elements. When a user clicks on the label, it automatically focuses on or activates the associated input, such as text fields, checkboxes, or radio buttons. This helps make forms more user-friendly and easier to navigate.The <label> tag can be used in two ways:Using the for attribute: The label is connected to an input field by using the for attribute, which matches the id of the input.Wrapping the input inside the label: The input element can also be placed directly inside the label, where no for or id attributes are needed.HTML Inputs and LabelsIn HTML, the <label> tag works hand-in-hand with input elements. It allows users to click on the label, which then selects or focuses on the associated input field. This connection between inputs and labels enhances both usability and accessibility for forms, making it easier to interact with them.Supported TagsThe <label> tag can be defined with the following Tags:<button><input><meter><output><progress><select><textarea>Syntax<label> form content... </label>Attribute ValueAttribute ValueDescriptionsforIt refers to the input control that this label is for. Its value must be the same as the value of the input control's "id" attribute.formIt refers to the form to which the label belongs to.HTML <label> Tag ExamplesHere are some examples of how labeling can be used:Example 1: Using the <label> Tag with the For AttributeThis example illustrates the basic usage of the <label> tag in HTML. Here, we will use the <input> tag outside of the <label> tag. html <!DOCTYPE html> <html> <head> <title> HTML label Tag </title> </head> <body> <strong>HTML label Tag</strong> <br><br> <form> <!-- Starts label tags from here --> <label for="student"> Student </label> <input type="radio" name="Occupation" id="student" value="student"><br> <label for="business"> Business </label> <input type="radio" name="Occupation" id="business" value="business"><br> <label for="other"> Other </label> <!-- Ends label tags here --> <input type="radio" name="Occupation" id="other" value="other"> </form> </body> </html> Output: HTML label Tag Example OutputExample 2: Using the <input> Tag Inside the <label> TagIn this example, we will demonstrate how to use the <input> tag inside the <label> tag. html <!DOCTYPE html> <html> <body> <strong> HTML label Tag</strong> <br><br> <form> <!-- label tag starts from here --> <label> Male <input type="radio" name="gender" id="male" value="male" /> </label><br /> <label> Female <input type="radio" name="gender" id="female" value="female" /> </label><br /> <label> Other <input type="radio" name="gender" id="other" value="other" /> </label> <!-- label tag ends from here --> </form> </body> </html> Output: HTML label Tag Example OutputSupported BrowsersHere are the browsers that support the <label> tag:Google ChromeEdge FirefoxOperaSafariNote: Internet Explorer is not supported. HTML <label> Tag Comment More infoAdvertise with us Next Article HTML acronym Tag V Vishal Chaudhary 2 Follow Improve Article Tags : Web Technologies HTML HTML-Tags Similar Reads HTML DOCTYPE Declaration HTML DOCTYPE (Document Type Declaration) is an instruction that appears at the beginning of an HTML document, before the <html> tag.Its primary role is to tell the web browser which version of HTML the page is written in, ensuring that the browser renders the content correctly. It is not an HT 4 min read HTML abbr Tag The <abbr> tag in HTML is used to represent abbreviations and provides additional information about them through the title attribute, which displays a tooltip when hovered over. It helps improve accessibility and SEO by offering context for the abbreviated text.It makes text clearer by explain 3 min read HTML acronym Tag The HTML <acronym> tag was used to define an acronym, providing a way to identify and explain abbreviated terms in web content. However, it's deprecated in favor of <abbr>, which serves the same purpose but is more semantically correct.Syntax:Â <acronym title=""> Short Form </acr 2 min read HTML < address> Tag The <address> tag in HTML is used to define contact information for the author or owner of a document or an article. It is typically used for information such as an address, email, or phone number.The <address> element is a block-level element by default.The content inside <address 3 min read HTML a Tag The <a> tag defines a hyperlink, which is used to link from one page to another. The most important attribute of the <a> element is the href attribute, which indicates the link's destination. This attribute determines where the user is directed upon clicking the link.HTML<a href="http 2 min read HTML applet Tag The applet tag in HTML was used to embed Java applets into any HTML document. The <applet> tag was deprecated in HTML 4.01, and its support has been completely discontinued starting from HTML 5. Alternatives available in HTML 5 are the <embed> and the <object> tags. Some browsers s 2 min read HTML area Tag This <area> tag is used in an HTML document to map a portion of an image to make it clickable by the end user. This specifies the location and size of the active region on an image, which can be clicked. Clicking on areas with href attributes directs to a specified URL or action.html<!DOCTY 3 min read HTML article Tag The HTML <article> tag defines a self-contained, independent piece of content like a blog post, news article, or comment. It is designed for content that can be independently distributed, shared, or reused, providing semantic meaning to the content.This tag is introduced in HTML5.HTML<!DOCT 3 min read HTML aside Tag The <aside> tag is used to describe the main object of the web page more shortly like a highlighter. It identifies the content that is related to the primary content of the web page but does not constitute the main intent of the primary page. The <aside> tag contains mainly author inform 2 min read HTML5 < audio> Tag The <audio> tag in HTML5 is used to embed audio content on a webpage. It allows you to play audio files like MP3, OGG, or WAV directly in the browser. The <audio> element provides attributes for controlling playback, such as play, pause, and volume.Using the <source> element enable 3 min read Like