How Optocoupler Works

What is an Optocoupler? How Optocoupler works? These are just some of the questions I have before knowing this device. Opto coupler or opto isolator or photo coupler is an electronic device (a semiconductor) which is commonly used for signal isolation such as the primary and the secondary of a switching power supply. Its input circuit is a light source which is commonly a light