Preparing and Cooking FoodOne of the basics of food safety is cooking food to its proper temperature. Foods are properly cooked when they are heated for a long enough time and at a high enough temperature to kill the harmful bacteria that cause foodborne illness.