Most browsers will display the <pre>
element with the following default values.
Example:
HTML
<style>
pre {
display: block;
font-family: monospace;
white-space: pre;
margin: 1em 0;
}
</style>
<pre>
Text in a pre element
is displayed in a fixed-width
font, and it preserves
both spaces and
line breaks
</pre>
How to add HTML <pre> Tag | HTML Tag |
How to create a pre-formatted text with a fixed width (with CSS) | HTML Tag |
How to set Default CSS Settings on HTML pre Tag | HTML Tag |
Type: | Html |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |