In the former case it resembles superficially the alkali metals; in the latter case, the halogens, but the differences due to the lack of a 1p subshell are important enough that neither group fits the properties of hydrogen well.
ɪnðə fˈɔːɹmɚ kˈeɪs ɪt ɹᵻzˈɛmbəlz sˈuːpɚfˈɪʃəli ðɪ ˈælkəlˌaɪ mˈɛɾəlz; ɪnðə lˈæɾɚ kˈeɪs, ðə hˈælədʒənz, bˌʌt ðə dˈɪfɹənsᵻz dˈuː tə ðə lˈæk əvə wˈʌn pˈiː sˈʌbʃɛl ɑːɹ ɪmpˈoːɹtənt ɪnˈʌf ðæt nˈiːðɚ ɡɹˈuːp fˈɪts ðə pɹˈɑːpɚɾiz ʌv hˈaɪdɹədʒən wˈɛl.