And dinosaurs are reptiles, mammals and reptiles are amniotes [1], both amniotes and amphibians are tetrapods, tetrapods are actually fish[2], and there's no such thing as a fish[3]!
This is absolutely true, and to be expected from the fact that the inheritance splits like a tree. For one thing both we and salmon have bones, sharks only have cartilage.
But we're more closely related to sharks than either is to the jawless fishes like the hagfish. The hagfish are just plain weird.
http://tolweb.org/Dinosauria/14883