ITSourceCode.com

We Exist to Provide 100% Free Source Code and Tutorials

Custom Search

06-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

Facebook Comments

Check Your Domain Ranking

Leave a Reply

Your email address will not be published. Required fields are marked *

ITSourceCode.com © 2016 Frontier Theme

Subscribe For Latest Updates

Signup for our newsletter and get notified when we publish new articles for free!