This is easy to see with a picture of a keyboard. The distance between two white notes that are side by side may be a whole tone (if there is a black note in between them) or a semitone (if there is no black note between).