17 month old biting and slapping

When my 17 month old throws a tantrum she will bite and slap me. I don't even understand where she learned to do these things but I try to calmly explain to her that it hurts and she will freak out even more. Is this a phase? How can I get her to stop?