Based on their food type, the majority of dinosaurs belonged to the classification of herbivores. Herbivorous dinosaurs were plant-eaters that mostly ate leaves, fruits, and other vegetation. They ranged in size from small, feathered dinosaurs to large, long-necked sauropods.