Answer
The liquid is dark or colored as it absorbs all colors of light except that color. The amount of light absorbed by an object depends on how much material is absorbing the light. Foam has low density and it thus absorbs very little light and a lot is reflected , therefore, foam generally appears as white.
Work Step by Step
The liquid is dark or colored as it absorbs all colors of light except that color. The amount of light absorbed by an object depends on how much material is absorbing the light. Foam has low density and it thus absorbs very little light and a lot is reflected , therefore, foam generally appears as white.