Page 181 - CSS
P. 181
}
}
This code does 3 things:
• it prevents a page break inside any p tags, meaning a paragraph will never be broken in two
pages, if possible.
• it forces a page-break-before in all h1 headings, meaning that before every h1 occurrence,
there will be a page break.
• it prevents page-breaks right after any h2
Read Fragmentation online: https://riptutorial.com/css/topic/4316/fragmentation
https://riptutorial.com/ 159

