Teach your child how to be tolerant from an early age. Show them that every person is worth the same. Show them that the fact that someone is different from them does not mean that they are worse or better.
Whilst angry, the emotions can take over. Often parents forget that they do not like it when someone shouts at them but then, upset by the child who is doing just that, they cause a scenes. How to avoid this?