Tips for tangled cords?

Odd question but how do you all handle tangled cords? I have many electronics where the cords just get tangled and it tends to be annoying especially the cord for my headset as it shortens the length. Any tips on how to prevent cords from tangling would be appreciated.