Question: is ionic compound metal and nonmetal?
Answer: Ionic compounds are (usually) formed when a metal reacts with a nonmetal (or a polyatomic ion). Covalent compounds are formed when two nonmetals react with each other.