measure the mass of an empty container. add the liquid measure the mass of the container with the liquid. subtract the two measurements to find the mass of the liquid by itself.
This is true and it is a way of measuring the weight of liquids. Nowadays, most electronic scales have an option to set the weight to 0 when you add the container so it instantly measures only the weight of the liquid.