The most accurate way to take a child's temperature is by using a digital thermometer placed under their armpit or in their mouth.