In this embodiment, although active layers of the NTFT and PTFT are in direct contact with each other, and the drain electrode is common to both, the invention is not particularly limited to this structure, but a structure as shown in FIG. 21B (structure where active layers are completely separated) may be adopted.