Some foods and drinks are rich in both calcium and vitamin D. These usually have calcium or vitamin D added. Examples include milk, yogurt, ready-to-eat cereals, and plant-based "milks" (such as soy and almond milk).
Foods that are only rich in calcium include ice cream, breads, kale, broccoli, cheese, cottage cheese, almonds, beans, and tofu. These have less calcium per serving than the foods above that have both calcium and vitamin D.
Foods that are only rich in vitamin D include many types of fish (such as tuna fish, salmon, sardines, and mackerel), cod liver oil, and eggs.