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

Home
HTML / CSS
1.CSS
2.CSS Controls
3.Form
4.IE Firefox
5.Layout
6.Marquee Attributes
7.Meta Tags
8.Microsoft Attributes
9.Object
10.Reference
11.Style Basics
12.Tags
13.Templates
14.XML
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.