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 |
Apply for HTML5 Certification Now!!
http://www.vskills.in/certification/Certified-HTML5-Developer