UK[ˈleɪbl] 美[ˈleɪbl]

n. label; mark, symbol; [construction] molding on a door or window

vt. label on; call... ; List... as; [Chemistry] Use radioactive elements to trace (elements or atoms, etc.)

Third person singular: labels Plural: labels Present participle: labelling Past tense: labelled Past participle: labelled

html label label syntax

Function:Define annotations (markers) for input elements.

Note: Thelabel element does not present any special effects to the user. However, it improves usability for mouse users. This control is triggered if you click on the text inside the label element. That is to say, when the user selects the label, the browser will automatically turn the focus to the form control related to the label.

Note:The "for" attribute can bind label to another element. Please set the value of the "for" attribute to the value of the id attribute of the relevant element.

html label label example

  

请点击文本标记之一,就可以触发相关控件:



Run Instance»

Click the "Run Instance" button to view the online instance

  

点击文本,就可以触发相关控件:



Run instance»

Click the "Run instance" button to view the online instance