Doorbell:
The doorbell consists of an electromagnet.
The electromagnet is a coil wound on an iron core.
This electromagnet behaves like a magnet when electric current flows through the coil.
This electromagnet attracts the iron strip near it, causing the sound.
The diagram is shown below
Here, iron strip is attracted to the electromagnet.