How does an auto spark ignitor work in a gas stove?

Ever wondered how does an auto spark igniter work in a gas stove? Our technical experts can explain you the best way.

In many gas stoves, especially in the cooking range, there is auto spark ignition system for creating the flame. By simply turning the knob on and momentarily pressing it a spark is generated somewhere in the burner and the gas catches the spark and flame is generated.

What is the exact mechanism of this technique and how it differs from manual to electric models and how the safety aspect is managed in this?