Herbivores are organisms that eat any part of a plant, like their leaves, stem or roots. In contrast, carnivores are organisms that prey on animals, they kill them to eat them.
In the prehistoric era, there were several herbivores and dinosaur species. Some herbivore dinosaurs are:
Triceratops
Diplodocus
Argentinosaurus
Stegosaurus
Ankylosaurus
Some carnivorous dinosaurs examples are:
Tyrannosaurus
Carnotaurus
Sinraptor
Velociraptor
Spinosaurus