Septic Systems 101

What are the basics of a septic system? Does the septic system have anything to do with the size of a house? Can you put a septic system anywhere on the land that you want to? Are there any laws regarding septic systems and their inspections?