Yorkshire pudding is called a 'pudding' because in one UK sense of the word it describes a savory dish; another example of this usage is steak and kidney pudding, which is similar to, but not the...
Pudding is most often a dessert. Pudding is a sweet milk-based dessert, similar in consistency to egg-based custards as well as to more traditional puddings such as bread pudding and rice pudding.