HTML CSS Reference/HTML Attributes Reference/label option — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
| |
Текущая версия на 08:20, 26 мая 2010
"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>