HTML Label

<label> tag in HTML

The <label> tag represents a label which can be associated to a form control, and is supposed to provide a short description for it.

Example 1 - Simple example

Try Yourself

Example 2 - radio button with and without <lable> tag

Try Yourself

for attribute is used to connect with the other html controls.

Example 3- Usage of for attribute

Try Yourself