Principle of electric generator:
when magnetic field linked with closed loop changes with time an electromotice force developed insied closed loop.
This is principle of electromagnetic induction.
This is given by Faraday.
when magnetic flux lined with closed loop will change with time will cause electromotivve force.
this emf is directly proportional to rate of change of magnetic flux.