06-HTML Pre

0
285

This tutorial is all about HTML Pre.
When you write an HTML document, the web browser interprets it as one long line. Even if you use tabs,spaces and line breaks so that it easy for you to read the content, but the browser would still ignore it.

 

As a solution to this problem you can use the <br /> tag, but this can be annoying at times. So to solve it in a simplier way, you can use this <pre></pre> tag that stands for previously formatted text.

 

Example:

<pre>
Start by doing what's necessary;
    then do what's possible; 
and suddenly you are doing the impossible. 
    by -Francis of Assisi 
<pre>

Result:

Start by doing what's necessary;
    then do what's possible;
and suddenly you are doing the impossible.
    by -Francis of Assisi
 


 

 

Readers might read also:

Facebook Comments
(Visited 23 times, 1 visits today)

LEAVE A REPLY

Please enter your comment!
Please enter your name here