What TYPE of plants do caterpillars eat?

The Monarch caterpillar eats only milkweed. Other caterpillars of different types eat leafy plants. They eat the leaves of fruit and flowering plants.