A chemical element is a type of atom that is defined by its number of protons.
A chemical compound is defined as a substance that is made of two or more different elements that are chemically bound together.
Chemical compounds may be defined by the type of elements that are a part of the compound. If the compound is made of just metals, then it is called a metallic compound (such as silver). If a compound is made of a metal plus a nonmetal, then it is known as an ionic compound (such as everyday table salt that is known as sodium chloride or NaCl). If it is made of two or more nonmetals, then it is classified as a covalent compound (such as carbon dioxide, or CO2).
Chemical compounds are determined by the way the electrons react with each other. When you have a metal and a nonmetal combine they move the electron to the element which needs it to be stable, so it forms a positive or negative charge or called an IONIC bond. When two nonmetals combine, they share the electrons in specific ways attracting COVALENTLY in single, double or triple bonds. Metallic bonds are simply metal plus metal bonds.