Typically, the best way to respond to a tantrum is to stay calm. If you respond with loud, angry outbursts, your child might copy your behavior. Shouting at a child to calm down is likely to make things worse.
Instead, it can help to redirect children to something else that may interest them. Offering a different book, moving to a new location or making a funny face might help. Try making tasks into a game: "Let's see who can pick up the most toys."
Sometimes children will hit or kick during a tantrum. They may try to run out into the street. If this behavior is dangerous, calmly hold your child until your child calms down. If the child is upset but safe, sit with the child and show calm behavior until the tantrum subsides.
When your child quiets down, calmly explain your rules.