Here's why:
* Nonmetals have a high electronegativity, meaning they have a strong attraction for electrons.
* When two nonmetals bond, neither atom has a strong enough attraction to completely remove an electron from the other.
* Instead, they share electrons to achieve a stable electron configuration.
* This sharing of electrons forms a covalent bond.
Examples of covalent compounds include:
* Water (H₂O)
* Carbon dioxide (CO₂)
* Methane (CH₄)
* Ammonia (NH₃)