HTML and CSS Reference
You place tags into the <pre> block as you would in any other portion
of the HTML/XHTML document. For instance, study the reference to the
"process" function in the previous example. It contains a hyperlink (us-
ing the <a> tag) to its source file, process.c .
188.8.131.52. The width attribute
The <pre> tag has an optional attribute, width , which determines the
number of characters to fit on a single line within the <pre> block. The
browser may use this value to select a font or font size that fits the
specified number of characters on each line in the <pre> block. It does
not mean that the browser will wrap and fill text to the specified width.
Rather, lines longer than the specified width simply extend beyond the
visible region of the browser's window.
The width attribute is only advice for the user's browser; it may or may
not be able to adjust the view font to the specified width.
184.108.40.206. The dir and lang attributes
The dir attribute lets you advise the browser in which direction the text
within the <pre> segment should be displayed, and lang lets you specify
220.127.116.11. The class, id, style, and title attributes
Although the browsers usually display <pre> content in a defined style,
you can override that style and add special effects, such as a back-
ground picture, by defining your own style for the tag. You can apply
this new look to the <pre> tags using either the style or the class attrib-