TYPES A & B
There are two types of domestic wall outlets in use in the US, Canada, Japan and Central America: the ungrounded type A (NEMA 1-15) and the grounded type B (NEMA 5-15). (The full list of countries that use types A & B can be found here.)
TYPE A
This class II ungrounded plug with two flat parallel prongs is pretty much standard in most of North and Central America. It is known as NEMA 1-15 and was invented in 1904 by Harvey Hubbell II. The plug has two flat 1.5 mm thick blades, measuring 15.9 – 18.3 mm in length and spaced 12.7 mm apart. Type A plugs are generally polarised and can only be inserted one way because the two blades do not have the same width. The blade connected to neutral is 7.9 mm wide and the hot blade is 6.3 mm wide. This plug is rated at 15 A. Since 1965, ungrounded type A outlets are not permitted anymore in new constructions in the United States and Canada, but they can still be found in older buildings.
Type A and B plugs have two flat prongs with (often, but not always) a hole near the tip. According to the official regulations by NEMA (National Electrical Manufacturers Association), these holes are entirely optional and intended for manufacturing purposes only. Some sockets, however, use the holes in the prongs to hold the plug more tightly. The contact wipers that the prongs slide into have bumps on them. These bumps fit into the holes so that the outlet can grip the plug’s prongs more firmly. This prevents the plug from slipping out of the receptacle due to the weight of the plug and cord. It also improves the contact between the plug and the outlet. Most other sockets do not have those bumps but just two spring-action blades that grip the sides of the plug pin. Of course, in such cases the holes are not necessary.
There are also some special outlets which allow you to lock the cord into the socket, by putting rods through the holes. In this way, vending machines and the like cannot be unplugged. Moreover, electrical devices can be factory-sealed by the manufacturer using a plastic tie or a small padlock through one or both of the plug prong holes. For example, a manufacturer might apply a plastic band through the hole and attach it to a tag that says: “You must do X or Y before plugging in this device”. The user cannot plug in the device without removing the tag, so the user is sure to see the tag.