What is a 3G dongle? How do they work?

I don't have access to a wireless router anymore so could I use a 3G dongle instead?
Will someone explain to me how they work? How much internet time to you get with them?
Also, how is a 4G dongle different?
Thank you! :D
5 answers 5