Ionic compounds are for both metals and nonmetals.​