Even the best-behaved child will have its limits – tiredness, hunger, lack of affection, or just nothing that you can figure out. Humans can literally be blind with rage, so keep the child safe. If you’re in a public place, try holding the child from behind, but ignoring it. At home you can isolate the child in a safe room or playpen for a ‘time out’ (these can be a very effective strategy at all ages). Keep your cool, and don’t use physical punishment.
No one wins a power struggle with a baby or toddler, so don’t get into one. If you’re clear about the limits, consistent with discipline and keep your cool, you will set a strong foundation for the future.