Thanks David,
If you are just starting out and want to know which type of spanners you should get first, I suggest a good set of combination spanners is the way to go. They usually have a shallow offset of @ 15˚ to the ring end.
Deeper offsets are also available (really a double offset as the handle has a second opposite offset to the ring.)
Though I recommend the shallow offset for combination spanners for your first set as later on for your next set you can get a deep offset set of ring spanners thereby having in effect the benefits of 3 sets of spanners in just 2 sets, openenders and both shallow and deep offset ring spanners.
The offsets can be useful in gaining clearance around nearby obstacles but can also put you on a collision course with other obstructions when you don't need the offset
A shallow offset combination spanner will do anything an openender can do and can do most jobs a deep offset ring spanner (box wrench to the yanks) can.
You can get them in short, standard and long series (series is the length of the handle)
Here's a set of short series or stubby (as they're sometimes known) combination spanners
They are handy when you don't have the room to swing a longer spanner, but don't give you as much leverage as a standard series spanner.
I wouldn't recommend ratchet or swivel headed ratchet spanners for your first set as the bulk of the extra metal needed for the swivel and ratchet mechanisms cut get in the way when clearance around the bolt head is limited.
They are also not going to be as tough as a standard combination spanner, which in extreme circumstances you may have to hit with a hammer.
Ratchets and swivels don't like hammers!
But you should look to getting a set further down the track as they can be an absolute life saver at times.
Now you really shouldn't go hitting spanners with hammers unless there is no other way to get the job done if you must do so, use a soft face hammer.
Unless of course you using a proper flogging spanner which is designed to have the living daylights belted out of it by a FBH (Fornicating Big Hammer)
Note the anvil end for hitting.