Yelling back at the toddler is something that is not affective and just makes the toddler think that yelling and screaming is ok and usually just makes them do it all the more. When speaking to a toddler that is having a temper tantrum, try to be calm and keep your voice at a normal level. Raising your voice a little bit is ok but refrain from screaming and yelling back at the toddler.
Another thing to try is the time out chair. Putting a child in a time out chair can be started anywhere from about 18 months old and up. Starting it early on helps them learn what it all means. At first the time out doesn't have to be long, only a few seconds or as long as the toddler will sit in the chair. As time goes on and more time outs are given, longer periods of sitting should be given. The more they are repeatedly put in time out for doing something, the more they will learn that it is something they should not be doing. It may take time and many time outs before a toddler gets the idea but they do get the idea in the long run.
Try everything you can to help you and your toddler make it through the terrible twos without much stress to your family or the toddler. Sometimes nothing works and you just have to try your hardest to relax and not get stressed out over nothing working. They do outgrow the terrible twos, sometimes quickly and other times not until they go to school.
Most important, remember that your toddler is learning every day and your reactions will factor in how they will react to things as well. And remember to tell that toddler that you love them very much even when punishing them with a time out.