Difference between revisions of "Select Option and Optgroup Elements"

From Level Access Web Labs
Jump to navigation Jump to search
Line 12: Line 12:
 
==Listbox==
 
==Listbox==
 
<html>
 
<html>
 +
<head>
 +
<style>
 +
  option {
 +
    color: red;
 +
background-color:purple;
 +
}
 +
</style>
 +
</head>
 
<label for="s2"> Choose path</label>
 
<label for="s2"> Choose path</label>
 
<select id="s2" size="3">
 
<select id="s2" size="3">

Revision as of 03:26, 14 November 2020

Standard Select Element

Listbox

Multi-select

Select with Optgroup

Results for optgroup

The only screen reader browser combination that supports optgroup is JAWS with Internet explorer.

Select with over 20 options