Buttonholes are holes in fabric which allow buttons to pass through, securing one piece of the fabric to another. The raw edges of a buttonhole are usually finished with stitching. This may be done either by hand or by a sewing machine. Some forms of button, such as a frog, use a loop of cloth or rope instead of a buttonhole. Buttonholes can also refer to flowers worn in the lapel buttonhole of a coat or jacket, which are referred to simply as "buttonholes" or boutonnières.
Buttonholes for fastening or closing clothing with buttons appeared first in Germany in the 13th century. However it is believed that ancient Persians used it first. They soon became widespread with the rise of snug-fitting garments in 13th- and 14th-century Europe.
Buttonholes often have a bar of stitches at either side of them. This is a row of perpendicular hand or machine stitching to reinforce the raw edges of the fabric, and to prevent it from fraying.
Traditionally, men's clothing buttonholes are on the left side, and women's clothing buttonholes are on the right. The lore of this 'opposite' sides buttoning is that the practice came into being as 'women of means' had chamber maids who dressed them. So as not to confuse the poor chamber maids, the wealthy began having women's garments made with the buttons and holes 'switched'; the birth of the modern ladies' blouse. The chamber maids themselves, as did most all the common class, both male and female, actually wore 'shirts' with buttons and holes placed as on men's clothing. There appears to be no concrete reference to prove or disprove this story, but its plausibility bears noting.
There is also the theory that if a man is driving his ox cart or carriage or car, he can see inside her blouse and she can see inside of his. (Of course this assumes the driver is on the left hand side.)
Sewing machines offer various levels of automation to creating plain buttonholes. When made by machine, the slit between the sides of the buttonhole is opened after the stitching is completed.
Keyhole buttonholes are most often found on tailored coats and jackets.