El elemento <optgroup>
El elemento <optgroup> se usa para agrupar términos lógicamente dentro
de un elemento <select>. El elemento requiere un comando de apertura
y uno de cierre. El elemento es un elemento bloque. Ejemplo:
<html>
<head>
<title>El Elemento optgroup</title>
</head>
<body>
<select>
<option
selected>Seleccione un Producto</option>
<optgroup
LABEL="AntiVirus">
<option>Norton</option>
<option>Panda</option>
<option>F-Secure</option>
</optgroup>
<optgroup
LABEL="SQL">
<option>MYSQL</option>
<option>Microsoft SQL</option>
<option>Oracle</option>
</optgroup>
</select>
</body>
</html>
|