Iron nails are made up of only one kind of atom i.e Fe. Therefore, it is an element.
Pizza is made up of bread, cheese, onions, tomatoes, olives, etc. Therefore, it is a mixture.
Salt is made up of only one kind of substance, that is, salt particles. Therefore, it is a compound.