Are crocodiles and alligators considered dinosaurs like birds are?
No, crocodiles and alligator are less closely related to dinosaurs than birds. While birds descended directly from certain dinosaurs, the ancesotors of crocodiles lived at the same time as dinosaurs. They share a common ancestor with dinosaurs a bit earlier since both dinosaurs and crocodiles are reptiles. You can imagine it like this, if a dinosaur is the father of a bird, then crocodiles are the bird’s uncle. Just put lots of generations in between everything.