A handheld electronic device may be provided that contains wireless
communications circuitry. The handheld electronic device may have a
housing and a display. The display may be attached to the housing a
conductive bezel. The handheld electronic device may have one or more
antennas for supporting wireless communications. A ground plane in the
handheld electronic device may serve as ground for one or more of the
antennas. The ground plane and bezel may define a opening. A rectangular
slot antenna or other suitable slot antenna may be formed from or within
the opening. One or more antenna resonating elements may be formed above
the slot. An electrical switch that bridges the slot may be used to
modify the perimeter of the slot so as to tune the communications bands
of the handheld electronic device.