How might plant-eaters have defended themselves from attack?

 

                    The smaller bird-like dinosaurs were as fast and agile as most of their predators, and would simply have run away when attacked. The giant sauropods were well able to defend themselves, by rearing up and trampling any attacker with their huge weight. They also defended themselves with the claws that many of them had on their front legs. They may have used their tails and long necks as weapons too.

                   The young sauropods would have been very vulnerable, and it is probable that the adults guarded them. This may also have happened with bulky horned dinosaurs, such as Triceratops. These dinosaurs might have formed a protective circle around the young when attacked, presenting a barrier of sharp horns towards the attacker.

Picture credit: google