Baking "domes"

Can someone tell me how I can bake cakes, and cupcakes, etc. without having them come out with domes on top? I often see, on tv, cakes that are flat on top, and can’t figure out how they did it. Mine often crack, too. Thanks for your help.:confused::confused: