Xpode.com        Click here to Print this article.

Pre tag in HTML

This tag is used for show the formatting of text(formatted text) means preformatting text. We will format the text in specific shape or design on browser. Then we will pace the text in this tag.

Syntax :

<pre>Text.</pre>

              <pre>
Sr No. Websites
1 www.google.com
2 www.microsoft.com
3 www.xpode.com
</pre>
It will have output:

Pre Tag Image

If we will not use this tag the output will not be in formatted form. Output without tag will be :

Without Pre Tag Image



http://
http://

Contributed by:
Rohit kakria
I am software developer, moderator of xpode.com

Resourse address on xpode.com
http://www.xpode.com/Print.aspx?Articleid=44

Click here to go on website