The widows property is used in paged media to control line breaks by specifying the minimum number of lines in a paragraph that should be left at the top of the page.
Possible Values:
integer: Any length unit. Negative length values are not permitted for this property.
Applies to:
All the Block level elements
DOM Syntax:
object.style.widows="5";
Example:
Here is the example to create 4 lines at the bottom and 3 lines at the top of each page: