Ignore the temper tantrums.
Distract the child with an activity.
Explain temper tantrums are not acceptable.
Place the child in their room.