Introduction:
The HTML
Example:
The HTML
optgroup
tag is used for grouping related options
within your select list. This makes it easier for users to comprehend
their choices when looking at a large list.Example:
<html> <head> <title>HTML optgroup Tag<title> </head> <body> <select> <optgroup label="Australia"> <option value ="sydney">Sydney</option> <option value ="melbourne">Melbourne</option> </optgroup> <optgroup label="New Zealand"> <option value ="cromwell">Cromwell</option> <option value ="queenstown">Queenstown</option> </optgroup> </select> </body> </html>
0 comments :
Post a Comment