Why do H and F form a covalent bond, while Na and Cl form an ionic bond?

2 answers

Isn't H a nonmetal?

Look at the difference in electronegativies.
Thanks. I read ahead a few pages and found what I wanted to know.