Halogens like hydrogen are highly electronegative in nature as it has the tendency to form anion by the gain of one electron in its valence shell. Similarly hydrogen has one electron in its only s-orbital which can accommodate only one electron to form hydride anion like halogens.