Style widows Property
The widows property is used to either set or return the minimum number of lines that must be present at top of an element. It is basically used for printing or print preview and only works on block-level elements. For example, widows:5 means that at least 5 lines must be visible below the page break.
Syntax:-
Its syntax is:- object.style.widows OR object.style.widows = number | initial | inherit
Return:-
Its return is:- a string containing minimum number of lines to print at top of page
Further Explanation:-
ValueDescription numberAn integer that specifies the minimum number of visible lines. initialSets property to its default value. inheritInherits property from its parent element.