foam — form of matter containing pockets of gas in a solid or liquid