change color of selected option css code example Example: css selected color ::selection { background-color: #222; color: white; }