|
|
|
| | Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element | |
|
|
<PRE></PRE>Display text as it appears in the document |
|
|
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.
Netscape Nothing special. Microsoft IE Nothing special. Internationalization Nothing special. |
| | Home | HTML Guide Start | List of HTML Elements | Next Element | Previous Element | |
|
Michael T. Rusk All contents copyright © 1996-2001
Michael T. Rusk Revised:
Sunday, December 30, 2007 11:06
-0500 |