To prevent cavities, avoid sugary and acidic foods and drinks such as candy, soda, and fruit juice. Instead, encourage a balanced diet with plenty of fruits, vegetables, and whole grains. When your child eats sweets, try to avoid sticky, gummy snacks and instead choose treats like chocolate that don't adhere to the teeth.