In typesetting, widows and orphans are lines of text that dangle at the beginning and at the end of a block of text, either at the head or at the foot of a page or of a column of text.
- A paragraph-ending line that falls at the beginning of the following page or column, thus separated from the rest of the text. Mnemonically, a widow is "alone at the top" (of the family tree but, in this case, of the page).
- A paragraph-opening line that appears by itself at the bottom of a page or column, thus separated from the rest of the text. Mnemonically, an orphan is "alone at the bottom" (of the family tree but, in this case, of the page).
- Alternately, a word, part of a word, or very short line that appears by itself at the end of a paragraph. Mnemonically still "alone at the bottom", just this time at the bottom of a paragraph. Orphans of this type give the impression of too much white space between paragraphs.
Regarding page design and the layout of the text, the 15th edition of The Chicago Manual of Style (2003) indicates that an edited manuscript should have neither widows nor orphans, even if their elimination leaves blank space at the bottom of the page or of the column of text. The 16th edition of The Chicago Manual of Style (2011) proposes the acceptability that the layout of some pages can conclude with the first line of a new paragraph at the foot of the page.
The techniques for eliminating widows include:
An orphan is more easily deleted, either by inserting a blank line or by forcing a page break to push the orphan line onto the next page, to be part of the paragraph to which the orphan belongs. Similarly, an orphan word at the end of a paragraph can be relocated by forcing one or more words from the preceding text line into the paragraph line of the orphan. In web-publishing, this is typically accomplished by concatenating the words in question with a non-breaking space and, if available, by utilizing the orphans: and widows: attributes in Cascading Style Sheets. Sometimes it can also be useful to add non-breaking spaces to the first two (or few) short words of a paragraph to avoid having a single orphaned word placed to the left or right of a picture or table, while the remainder of the text (with longer words) would only appear after the table.
Most full-feature word processors and page layout applications include an automatic paragraph setting that prevents widows and orphans; thus, an orphan is forced to the top of the next page or column; and the text line preceding a widow is forced to the next page or column. In technical writing, where a single source may be published in different formats, with the viewer's expectation of viewing content in different sizes and resolutions, the paragraph settings automatically prevent widows and orphans. Manual overrides, such as inserted empty lines or extra spaces, can cause the insertion of a white space into the middle of pages.