I've worked in the payment card industry for over 20 years and what Angrboda says above is essentially correct with a minor quibble (there are differences in how payment card issuers and the member networks (Visa/MC/etc) treat credit and debit transactions, at least in the USA).
One thing I would like to say is this: if you have a choice, credit cards offer better protection against fraud than debit cards.
One thing I would like to say is this: if you have a choice, credit cards offer better protection against fraud than debit cards.