Breaking News

Option Group Tags

The <optgroup> tag
 
Defines an option group. This element allows you to group choices. When you have a long list of options, groups of related choices are easier to handle.
 
Example Page in browser will look like
<select>
<optgroup label=”Computers”>
<option value =”BE(CS)”>BE(CS)</option>
<option value =”MCA”>MCA</option>
</optgroup>
<optgroup label=”Electronics”>
<option value =”BE(ECE)”>BE(ECE)</option>
<option value =”MSc(ECE)”>MSc(ECE)</option>
</optgroup>
</select>
 
 

Check Also

Table Tags

Table Tags   Tag Description <table> Defines a table <th> Defines a table header <tr> …