emission spectra are produced by thin gases in which the atoms do not experience many collisions (because of the low density). The emission lines correspond to photons of discrete energies that are emitted when excited atomic states in the gas make transitions back to lower-lying levels.
It should be palced in group 2A because as it reacts with chlorine in ratio of 1:2 . It's valancy is 2 and is metal as it react with non metal donating two electrons .