To suppress a loss of data in a semiconductor device. To provide a display device including a capacitor storing data, a display element performing display in accordance with the data, and switching elements connected to electrodes of the capacitor. In the display device, the voltage is held between the electrodes of the capacitor by turning the switching elements off; thus, the data can be stored even when supplying the power supply is stopped.