Zebras feed almost entirely on grasses, but may occasionally eat shrubs, herbs, twigs, leaves and bark. Their digestive systems allow them to subsist on diets of lower nutritional quality than that necessary for other herbivores.
Animals that eat both animals and plants are called omnivores. Bears, pigs, birds, and raccoons, among other animals, are omnivores (including humans!).