What should I look for when buying carpet?

What are the different types of carpet?

How can I maintain my carpet's appearance?

How important is carpet padding?