The foam-like substances found on plants are actually secreted by the nymph of this spittlebug. The foam function as a shield to protect the nymphs from predators as well as to provide the right environment for the nymphs to grow.
The exoskeleton or shell of the nymph left behind after the hopper reached maturity and left.