<pre> stands for preformatted text, means the text without certain sort of formatting; or in other words it removes certain formatting of the text.
It is very useful in writing down codes, or to show raw writing style.
Here is an example.
<!-- following example without <pre> tag -->
<p>There is a big space between this and that.</p>
<p>I won't die
unless I climb Everest
100 times</p>
<!-- below example with <pre> tag -->
<pre>
<p>There is a big space between this and that.</p>
<p>I won't die
unless I climb Everest
100 times</p>
</pre>
Check the above example in your favourite browser and know the difference yourself.
Comments
Post a Comment