Foam is made up of a lot of small bubbles, usually found on the top of a liquid like the sea or a glass of beer.
Something that is full of bubbles may also be called foam, such as the foam padding found inside seat cushions.