You clamp it onto the neck at the appropriate fret position.
The only exceptions to the standard type of capo are the ones used for lap steel and square neck resonator guitars, where the action is very high, and you don't want the strings to touch the neck anyway. They use a capo that fits under the strings.
Cheers
Dave