Difference between revisions of "Select Option and Optgroup Elements"

From Level Access Web Labs
Jump to navigation Jump to search
(Listbox)
Line 15: Line 15:
 
<style>
 
<style>
 
   option:selected {
 
   option:selected {
 +
    color: red;
 +
background-color:purple;
 +
}
 +
select {
 
     color: red;
 
     color: red;
 
background-color:purple;
 
background-color:purple;

Revision as of 03:29, 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