What is the difference between a line of credit and a loan?

A line of credit is a revolving account that allows you to take out what you need, when you need it, only paying interest on the amount you took out. Meanwhile, a loan is a lump-sum of money that has a fixed interest rate and is to be paid over a fixed period of time.