Basic MOSFET background and operation
A MOSFET is basically a switch that can be controlled electronically - it's an acronym for Metal-Oxide-Semiconductor Field-Effect Transistor. Here is the electronic diagram of a MOSFET, note it has 3 leads labelled D, G, S: