How does windmill generate electric energy?
the potential energy of wind - rotation of windmill - electrical energy
the kinetic energy of wind - rotation of windmill - electrical energy
solar energy - rotation of windmill - electrical energy
sea breeze and land breeze - rotation of windmill - electrical energy
The kinetic energy of wind is used to rotate the windmill which rotates the turbine and hence the dynamo generates electricity.