Clue 1: it breathes air
A fish breathes water through gills. A whale breathes air with lungs, so it has to come up to the surface to take a breath. Its nose is the blowhole on top of its head, which makes it easy to breathe while the rest of it stays underwater.
Even a whale asleep has to come up for air.
Clue 2: it is warm-blooded
Mammals keep their bodies warm from the inside, whatever the weather. Whales do too, even in icy water.
Clue 3: it has hair
Every mammal has hair at some time in its life. A whale doesn't look hairy, but dolphins, which are in the same group as whales, have a tiny amount of hair around the blowhole. That's very different from the scales of a fish.
Clue 4: it feeds its baby milk
A mother whale gives birth to a live baby, a calf, instead of laying eggs, and she feeds it milk. A humpback whale mother usually has one calf at a time, and the calf stays close to her for up to a year before it stops drinking milk.
So what about sharks?
Sharks are fish. They breathe water through gills, and their skeletons are made of cartilage, not bone. The biggest fish in the world is a shark, the whale shark, even though its name says "whale". A whale shark is a fish, and a blue whale is a mammal. Names can be tricky; the clues aren't.
For Big readers: the four groups of sea mammals
Scientists put mammals that live most or all of their lives in or near the ocean into four groups. The cetaceans are the whales, dolphins and porpoises. The pinnipeds, which means "fin-footed", are the seals, sea lions and walruses. The sirenians are the manatees and dugongs. The last group is the polar bears and sea otters.
All four groups pass the same four clues. A walrus or a manatee breathes air, is warm-blooded, has hair and feeds its young milk, just as a whale does. Seals, sea lions and walruses come out onto land or ice to have their young and to rest; dolphins live in the ocean all of the time.
Pick Big at the top to see the part for older readers.