Most animals that live on land lay eggs that are protected by hard shells. They fertilize their eggs internally. Water-dwelling animals like fish and amphibians lay eggs that have not been fertilized yet. Then the males lay sperm on top of the eggs, which is called external fertilization.
No mammals except for monotremes reproduce like this. Instead, they are viviparous. This means that the eggs develop inside the mother's body.