Conversation so far:
What defines a chemical element?
An element is a substance whose atoms all have the same number of protons: another way of saying this is that all of a particular element's atoms have the same atomic number.
How are chemical elements related to the Periodic Table?
The periodic table of elements arranges all of the known chemical elements in an informative array. Elements are arranged from left to right and top to bottom in order of increasing atomic number.
How is the periodic table organized?
The periodic table of elements arranges all of the known chemical elements in an informative array. Elements are arranged from left to right and top to bottom in order of increasing atomic number
How does a chemical compound differ from an element?
A compound contains atoms of different elements chemically combined together in a fixed ratio. An element is a pure chemical substance made of same type of atom.
What are different types of chemical compounds?
There are four types of compounds, depending on how the constituent atoms are held together:molecules held together by covalent bonds.ionic compounds held together by ionic bonds.intermetallic compounds held together by metallic bonds.certain complexes held together by coordinate covalent bonds.

Question: How are they formed?
Self-contained rewrite: How are chemical compounds formed?