The first chocolate bar was invented in 1847 by a company named Fry's. Its recipe included a blend of melted cocoa butter, sugar and cocoa powder, and within the next few decades, companies invented hundreds of chocolate bar varieties.
Prior to the first chocolate bar, most people consumed cocoa in the form of drinking powders and pressed cakes that turned into hot cocoa when combined with hot water. It was not until 1847 that Fry's attempted the first chocolate bar, which was bitter compared to modern recipes. Nineteen years later in 1866, Fry's invented the chocolate cream bar, which had a chocolate outer layer with a sweet cream inner layer. In the 19th century's remaining decades, other chocolate inventions were produced, including Easter eggs and Fry's Turkish delight.
In 1875, Daniel Peter of Switzerland added milk to the chocolate bar recipe to deliver a product that is similar to modern chocolate bars. By using condensed milk, he was able to create a smooth and creamy texture. In 1897, the Cadbury factory in Britain began taking a similar approach by producing bars featuring milk powder paste, cocoa butter and powder and sugar. The taste of this bar was dry and bitter, but by 1907, a pleasanter recipe was in circulation. Over the course of the 20th century, more manufacturers began introducing chocolates and candies to the market, with a few lasting into the 21st century.