This may shock some of you, but I don't know anything about nuclear bombs. Are they designed to be detonated at high altitude or dropped onto the ground like in Japan?

I assume that now that everyone knows about EMP effects, that any nuke from a country would try to be detonated in the air, while maybe some rogue terrorist would do it at ground level in some city or something.