preformatted text in HTML : pre « Tags « HTML / CSS

HTML / CSS » Tags » pre 
preformatted text in HTML
   
<!DOCTYPE html
<html
<head> 
<title></title> 
</head> 
<body
<h2>Puzzle</h2> 
<pre>
Block 
|\ / 
o o o 
| X 
o o o 
|/ \ 
o-o-o- 
</pre> 
</body
</html

   
    
    
  
Related examples in the same category
1.'pre' renders text in a fixed-width or monospaced font
2.white-space: pre
3.Use
 to keep the space
4.Pre Example
5.'width' determines the width of an element
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.