Karl, in this game you "move onto" the square which you want to attack, whether it holds units or a city. You cannot attack your own cities or those of your allies, and some units like Settlers and Transports cannot attack anything. You cannot "shell from afar" like in other games.
BTW, welcome to CivFanatics!