Label Control

It is used to provide a descriptive text before an input control, to help users to understand about the control. Each label can attached to a single control only. It’s usage involves linking the label and the associated control by having same value of ‘for’ attribute in the label tag and value of the id attribute of the control as shown

HTML code <label for=”name”>Name</label> <input type=”text” name=”Name” id=”name” />Browser output Label Control

Apply for HTML Certification

https://www.vskills.in/certification/certified-html-designer

Back to Tutorials

Share this post
[social_warfare]
Button Control
File Upload Control

Get industry recognized certification – Contact us

keyboard_arrow_up