hydrogen have electronic configuration of 1s¹ to acquire a stable state it can either lose electron and form H+cation or gain an electron( to compete its 1s subshell ) to form H- anion. As it has ±1 valency it is placed neither in group 1(alkaline metals ) nor in group 17 (halogens) .