A hard-boiled egg is cooked so that the egg white and egg yolk both solidify. On the flip side, soft-boiled eggs may have a yolk and the white partially liquid and raw.