Extensible HyperText Markup Language

widows

Definition

In printing, a "widow" is the last line of a paragraph appearing alone at the top of a page, such as the line seen inside the red box in the illustration below.The widows property avoids widows by specifying the minimum number of lines of a paragraph that appear at the top of a page when a Web page is printed.

Illustration showing two pages side by side. The last paragraph of the first page is split between the two pages. All but one line of the last paragraph is on the first page.

Example

  1. p {widows: 3}

Characteristics

Possible values

  • Minimum number of lines of a paragraph that must appear at the top of a page.
  • inherit
    Use the same computed value as the parent element for this property.

Default value

2

Applies to

Block-level elements

Inherited

Yes

See also