Monday, 9 July 2012

How To Insert Preformatted Text In HTML?

HTML Preformatted TagIn this HTML tutorial, I am going to teach you about HTML's preformatted tag. As its name suggest that its a tag that is used to format the text as it is in the editor. With the help of preformatted tags you can create simple tables or list of contents that is formatted in a pre formatted manner.

You can use the preformatted tags, <PRE> and </PRE>, to keep the line breaks and spaces you enter for a paragraph or block of text. Web browsers ignore hard returns, line breaks, and extra spaces between words unless you insert the preformatted tags. If you type a paragraph with spacing just the way you want it, you can assign the preformatted tags to keep the spacing in place.
  • Type <PRE> above the text you want to keep intact.
  • Type </PRE> below the text.
When displayed in a Web browser, the text retains all your original line breaks and spacing. Browsers display preformatted text in a monospace font by default. This can help you align elements within the text into columns.

Here's an example of the Preformatted Text by using <PRE> HTML Tag:
<pre> Name           Sabrez Alam Address       Pune Blog  </pre>
So, How's my tutorials? I hope you're enjoying my HTML tutorials. Looking forward for your valuable suggestions and comments.

1 Responses to “How To Insert Preformatted Text In HTML?”

Anonymous said...
16 December 2012 at 01:53

We are a group of volunteers and opening a new scheme in our community.
Your website provided us with valuable info to work on. You have done an impressive job and our whole
community will be thankful to you.
Take a look at my webpage : web design miami beach

Post a Comment

Hi Readers!

Please give your valuable responses and suggestions.