Atoms of oxygen and nitrogen are different in several ways, including:
Atomic number: The atomic number of an element refers to the number of protons in the nucleus of an atom. Oxygen has an atomic number of 8, while nitrogen has an atomic number of 7.
Atomic mass: The atomic mass of an element is the average mass of its atoms, which is determined by the number of protons and neutrons in the nucleus. Oxygen atoms have an atomic mass of 15.999 amu, while nitrogen atoms have an atomic mass of 14.00674 amu.
Valence electrons: Valence electrons are the electrons in the outermost energy level of an atom and are responsible for the chemical behavior of the element. Oxygen atoms have 6 valence electrons, while nitrogen atoms have 5 valence electrons.
Chemical reactivity: Oxygen and nitrogen are both non-metals, but they have different chemical reactivity. Oxygen is highly reactive and tends to form compounds with other elements through chemical reactions, while nitrogen is less reactive and tends to form stable compounds with other elements.