Label element is used to create or attach labels, it is used for label the input fields in form or any other element and it is considered as point element or indication element.
<form>
<label>Label name<label>any input field
</form>
You can use label any where within an HTML document.
Label output is bold text and you can use <br /> element to separate inputs on new line.
Label is pair tag and output of label is bold text like you can see in above example.
Open notepad or any other text editor, follow the following points.
text
password
submit
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget label is non empty element which means it always comes in pair.