Keep your baby cool and protect them from the sun. Babies less than 6 months old should be kept out of direct sunlight. Their skin contains too little melanin, which is the pigment that gives skin, hair and eyes their colour, and provides some protection from the sun.