A compound prepared by any method contains the same elements in the fixed ratio by mass. The given statement is known as:
Law of definite Proportions
According to the law of definite proportions, a given compound always contains exactly the same proportion of elements by mass.