Custard is a type of dessert that is made by cooking a mixture of milk or cream, sugar, and egg yolks. It can be thickened with cornstarch or flour and is often flavored with vanilla or other ingredients. Custard can be served warm or cold and can be used as a filling for pastries, a topping for various desserts, or enjoyed on its own. There are also variations such as baked custard, which is set in the oven, and custard can be either sweet or savory.