The document discusses which elements would form mainly covalent bonds out of oxygen, potassium, phosphorus, fluorine, hydrogen, and rubidium. It explains that covalent bonds form between two non-metals by sharing electrons, while ionic bonds form between a metal and non-metal by transferring electrons. Phosphorus and hydrogen are identified as non-metals that would form covalent bonds, while ionic bonds form between metals and non-metals when electrons are transferred.