HTML CSS Reference/HTML Attributes Reference/label option

Материал из Web эксперт
Перейти к: навигация, поиск

"label" Example

    
<HTML>
<head><Title>Example For label</Title></head>
<BODY>
<form name="form1" method="post" action="">
   <select name="select">
      <option label="testing1">first item</option>
      <option label="testing2">second item</option>
      <option label="testing3">third item</option>
   </select>
</form>
</BODY>
</HTML>



"label" is applied to

+----------------+--------------------------------------------------------------+
| Applied_To     |<option>                                                      |
+----------------+--------------------------------------------------------------+



"label" Syntax and Note

Note:
    
This attribute sets a text for <option> element. 
    
Syntax:
    
<option label="value"> . . . </option>