This depends on the ability to gain/loss electrons.
Atoms of non-metals usually gain or share electrons when they react with other atoms.
They form a molecule by the intermediate of chemical bonds.
Atoms of non-metals usually gain or share electrons when they react with other atoms.
The nonmetals share the atoms when reacting with each other.
== == When metals react with other elements, the atoms of the metals give up their valence electrons.
== == When metals react with other elements, the atoms of the metals give up their valence electrons.
== == When metals react with other elements, the atoms of the metals give up their valence electrons.
== == When metals react with other elements, the atoms of the metals give up their valence electrons.
since not all atoms have same no.of electronic configuration they try to attain an octet sharing electrons each other
Atoms of elements in group 18 (noble gases) do not easily combine with other elements to form compounds.
== == When metals react with other elements, the atoms of the metals give up their valence electrons.
When atoms get close to one another the magnetic force repels each other or attracts each other.