How do online travel companies make money?

how to companies like expedia.com, priceline.com, travelocity.com… make money?

do they recieve a commission fee on what they sell or is it a fee for the vendor listing?