A compound is a substance that contains two or more elements chemically combined in fixed proportions by mass. The compound silver sulfide is composed of the elements silver (Ag) and sulfur (S) in a 1:1 ratio by mass.
In contrast, a mixture is a combination of two or more substances that are not chemically combined and can be separated into their components by physical means, such as filtration or distillation.