Here's why:
* Simile: A figure of speech that compares two unlike things using the words "like" or "as".
In this sentence, the foam is being compared to the dogwood, which is a type of flowering tree known for its bright, showy blooms. The use of the word "like" makes this a simile.