The function of cappuccino foam serves as an insulating layer on top of the coffee, essentially locking in the heat.
The thick foam also creates a unique mouthfeel as you sip on your cappuccino. And finally, the foamy layer can act as a canvas for any artistic barista.