Skip to main content

Section 4.18 Program Listings

A <listing> is really a specialized type of <figure>, whose purpose is to hold computer code. Just like a figure, it has a <caption> and <title> which behave identically. However, the enclosed planar content is limited to a <program> or <console> (see Section 4.15).