HTML CSS Reference/HTML Attributes Reference/label option

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

"label" Example

   <source lang="html4strict">
   

<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>


     </source>
   
  


"label" is applied to

   <source lang="html4strict">

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

     </source>
   
  


"label" Syntax and Note

   <source lang="html4strict">

Note:

This attribute sets a text for <option> element.

Syntax:

<option label="value"> . . . </option>


     </source>