Optgroup HTML

HTML <optgroup> Tag Within an HTML <select> element, we can group related <options> in a drop-down list, using the HTML <optgroup> tag. Thus it provides easy access to the dropdown list, especially for a list with a large number of options. Syntax: <optgroup label=” “>……..</optgroup> Example: <!DOCTYPE html> <html> <body> <h3> Select an Option:</h3> <select> … Read more