What is a valence shell?
The valence shell is the outermost shell of an atom. It is usually (and misleadingly) said that the electrons in this shell make up its valence electrons, that is, the electrons that determine how the atom behaves in chemical reactions. Just as atoms with complete valence shells (noble gases) are the most chemically non-reactive, those with only one electron in their valence shells (alkali metals) or just missing one electron from having a complete shell (halogens) are the most reactive.
However, this is a simplification of the truth. The electrons that determine how an atom reacts chemically are those that travel farthest from the nucleus, that is, those with the highest energy. For the transition elements, the partially filled (n − 1)d energy level is very close in energy to the ns level and hence the d electrons in transition metals behave as valence electrons although they are not in the so-called valence shell.