The density is defined as the ratio of mass of a substance to volume of substance
density = mass / volume
the mass of any substance is measured either in grams or Kilo grams
while volume is measured as : cm^3 or mL or L or m^3
Thus correct answer will be
kg/l
g/ml