'pre' renders text in a fixed-width or monospaced font : pre « Tags « HTML / CSS






'pre' renders text in a fixed-width or monospaced font

  
    
<html>
<head>
<title>pre element example</title>
</head>
<body>
    <pre>No nonbreaking spaces (&nbsp;) are necessary in a pre element.</pre>
Text      Text                     Text
Text text &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;text 
</body>
</html>
    
      
        
    
  








Related examples in the same category

1.white-space: pre
2.Use
 to keep the space
3.Pre Example
4.preformatted text in HTML
5.'width' determines the width of an element