The first mention of the cupcake can be traced as far back as 1796, when a recipe notation of “a cake to be baked in small cups” was written in “American Cookery” by Amelia Simms. The earliest documentation of the term “cupcake” was in “Seventy-five Receipts for Pastry, Cakes, and Sweetmeats” in 1828 in Eliza Leslie's Receipts cookbook.
In the early 19th century, there were two different uses for the name "cup cake" or "cupcake". In previous centuries, before muffin tins were widely available, the cakes were often baked in individual pottery cups, ramekins, or molds and took their name from the cups they were baked in. This is the use of the name that has persisted, and the name of "cupcake" is now given to any small cake that is about the size of a teacup. (Source Wikipedia)
Here is example of cupcake from the kitchen of Lusiana Catering for one of the events patronized by Chef Hana. This is for Sekolah Menengah Taman Maluri,