An electrocardiogram (ECG) records the electrical activity of the heart and is essential for diagnosing congenital heart defects and arrhythmias in pediatric patients. Pediatric ECGs often use smaller electrodes and may require different lead placements to accommodate the unique anatomy of children.