A toggle switch is a type of electrical switch that can be operated by hand, and which has two or more positions. It operates by moving an internal mechanism from one position to another when pressure is applied. The name comes from the fact that it literally "toggles" between different positions. Toggle switches are often used in electronic devices because they provide a simple way of switching between different modes, and can be easily operated with one hand while holding the device.