There are popular votes which are the votes that the people submit and there are elector votes which are the votes that the elector gives. Some times the person with the most popular votes won't win because the other person will have more elector votes. That has happened 5 times.
Time to vote for President
Did you know that you are not voting for the President you are voting for a group of electors to vote for President. They are called the Electoral College!
How many votes does the president need to win?
Would you like to know more about the Electoral College?
Each state gets the number of electors as the number of their representatives and senators combined!
Look a coyote.
There are also faithless Electors which don't vot for their party.