How do people earn from a website online ... like facebook... if by clicking how much you get per click?

Mark zukerberg is a billoner .. how do he earn from facebook... how to buy a site name .... how to earn ... do it cost to run a site if yes how much ...
I want details but not essays .. simple and easy answer I can understand