Click here to hide categories Click here to show left categories

User: Home          welcome : Guest          Log In / Register here     




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

Share this article   |    Print    |    Article read by 3839 times
Author:
Rohit kakria
I am software developer, moderator of xpode.com
Related Articles: No related article
Related Interview Questions: No related interview question