Both are ways to communicate instantly on the web, by typing on your keyboard. In online chat, you communicate with a community of people with similar interests. With instant messaging, you communicate one-to-one, usually with someone you know.
What's the difference between online chat and instant messaging?