Dear Student,
The Position of hydrogen in the periodic table is questionable. It has been put in 1A group with alkali metals, but certain properties of hydrogen resemble those of halogens. So, it can be placed in the group for halogens as well.
Regards