Element is used to display the text enclosed using a mono-spaced font and lined up pretty much the way you enter it. Anchor and phrase elements can be used inside the PRE tags but paragraph formatting elements should not be used.
<html> <head> <title>Some Title</title> </head> <body> . . ==>> <PRE> ==>> Roses are Red, ==>> Violets are Blue, ==>> This poem's <em>real</em> old, ==>> And so are you. ==>> </PRE> . . </body> </html>
The PRE element can be used to force the browser to display things spaced like you want. But the browser usually gets the last laugh because it displays the text using some hideous, mono-spaced font that really detracts from the flow of your document.
There is also a WIDTH attribute that lets you specify how many characters long each line should be. I've never used this and it's not well liked by the specification writers either. It must have been a carryover from the good, old days. Don't use it.
Instead of clearing the margins you can also tell the browser that if there is a certain amount of space next to a table or figure then it can display your text. You do this by putting in an amount of space in "en" units or in pixels. You would put a value such as "50 en" for 50 "en" spaces or "130 pixels" for 130 pixels.
Netscape
Nothing special.
Microsoft IE
Nothing special.
Internationalization
Nothing special.
The Rusk Family . . . "the Legend
Continues"
All contents copyright © 1996, 1997 Michael T. Rusk
All rights reserved.
Revised: December 03, 1997 10:45 -0500
URL: ./htmlgd/tagpre.html