Horje

How to set Default CSS Settings on HTML pre Tag

Most browsers will display the <pre> element with the following default values.

index.html
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>

Output should be:

How to set Default CSS Settings on HTML pre Tag




Type :
html
Category :
Web Tutorial
Sub Category :
HTML Tag
Uploaded by :
Admin