The document discusses dinosaur habitats during different periods from the Triassic to the Cretaceous. During the Triassic, all land was joined in the supercontinent Pangaea, leading to extensive deserts. As the continents broke apart, climates became more varied with more rivers and seas. Different habitats developed like riverside forests, scrublands, and dense coniferous forests. Theories for dinosaur extinction include an asteroid impact 65 million years ago, climate changes due to volcanic activity or an ice age, disease, or competition from early mammals.