How do credit cards work?

An A-to-Z guide, from how to make payments to how interest is calculated.