change color on selected on selection code example Example: How to change selection color ::selection{ background-color: red; color: white; }