Pediatricians not only treat toddlers but also treat infants and kids and adolescents up to 18 to 21 years of age.