html tag for showing content as-is

Discussion in 'HTML & Website Design' started by Complete, Jun 13, 2009.

  1. #1
    What is that HTML tag for showing text content as it actually appears in the html file. If you use it, you do not have to worry about <br> because it does a line break exactly as it appears.
     
    Complete, Jun 13, 2009 IP
  2. emed

    emed Peon

    Messages:
    70
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    the <pre> tag
    <pre>the pre tag
    keep              all the spaces and 
    
    
    line breaks</pre>
    Code (markup):

    you can also do it with CSS:
    
    <p style="white-space:pre">css to keep              all the spaces and 
    
    
    line breaks</p>
    Code (markup):
     
    emed, Jun 14, 2009 IP