@media print { h1 { page-break-before: always; } h1:first-of-type { page-break-before: avoid; } }
<div style="page-break-after: always;"></div>