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






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