An electrocardiogram (ECG) records the electrical activity of the heart over time via electrodes placed on the skin. It displays the P wave, QRS complex, and T wave, which correspond to atrial depolarization and repolarization and ventricular depolarization and repolarization, respectively. The ECG is used clinically to diagnose cardiac conditions by examining intervals, amplitudes, and other characteristics. It provides important diagnostic information but cannot assess heart valves like angiography and echocardiography can.