Myocarditis (inflammation of the heart muscle) is a condition that can affect both children and infants.