A CVV-code (Visa) or CVC-code (MasterCard) is a 3-digit code on the back of your credit card.
This code cannot be read through the card's magnet stripe and you can use it to prove that you have the genuine card in your hand. This is why you are asked to give this code for security reasons when you are shopping online.