Woodlands of North America
Every one but the arctic.
Gerrothorax is a giant amphibian, not a dinosaur. It lived in freshwater swamps.
they all lived in different habitats some dinosaurs lived in the deserts and others in the swamps, and the grasslands.
There were thoudands of different dinasaurs that all lived in different enviroments. Your question is too open-ended to answer.
That is a very good question the Ankylosarus live in the third period Cretaceous