How To Teach A Kitten Not To Nip?

How do I teach my kitten to stop biting?

Kitten biting can be a very dangerous habit. My cat has bitten me several times. How can I get him/her to stop doing this?