Differences between credit and debit card

Differences between credit and debit card

When we go to make a purchase with a card, the seller always asks if it's a credit or debit card. What is the difference between credit and debit? d