The largest dinosaurs in the Jurassic tended to be plant eaters. The best known examples include the long-necked sauropods like Brachiosaurus and Apatososaurus, creatures that ate leaves off the tops of high trees. In addition, all of the ornithischians were herbivores, such as the plated Stegosaurus and the ankylosaurs. Ornithopods such as Camptosaurus competed with the large sauropods for vegetation. In contrast, the theropods were all carnivores, and evolved into large predators, such as the Megalosaurus and the well-known Allosaurus.