Thursday, 30 May 2013

How to display a preformatted text: HTML

Preformatted text tag is used to control the line breaks and spaces in a HTML paragraph.

Syntax:

      <pre> …………………… </pre>

eg:

  <pre>
 This is
 preformatted text.
 The    spaces and line breaks 
 you are using will be preserved 
 here. 
 </pre> 

No comments:

Post a Comment