A socket for selectively mounting on a board includes a housing and a latch. The housing includes a first side plate and a second side plate parallel to the first side plate. The first and second side plates define an elongated slot therebetween for reception of the board. The latch includes an axle, a body and a fastening portion. The axle is pivotably coupled to the housing at one end of the slot. The body has one end joined to the axle and the other end to the fastening portion. The fastening portion is constructed for engagement with the board. In addition, the lateral width of the body of the latch in the direction along the width of the first side plate is smaller than that of the axle in the same direction.