The hand with the highest total wins as long as it doesn't exceed 21. A hand with a higher total than 21 is said to bust. Cards 2 through 10 are worth their face value, and face cards (jack, queen, king) are all worth 10. An ace's value is 11 unless this would cause the player to bust, in which case it is worth 1. A hand in which an ace's value is counted as 11 is called a soft hand, because it cannot be busted if the player draws another card.
Each player's goal is to beat the dealer by having the higher, unbusted hand. Note that if the player busts they lose, even if the dealer also busts. When both the dealer and you have the same point value, it is called a "push", and neither player nor dealer wins the hand. Each player has an independent game with the dealer, so it is possible for the dealer to lose to some players but still beat the other players in the same round.