HTML - tags - <pre>

#103 of 147
pre

 <html>
 <body>
     <p>The tree command produces the following output:</p>
     <pre>
         C:.
         ├───Program Files
         │   ├───Adobe
         │   ├───Bonjour
         ...
     </pre>
 </body>
 </html>
 

The pre element contains preformatted text.

Text is displayed in a fixed width font, and all spaces and line breaks are preserved.

A live example:


The tree command produces the following output:

C:.
├───Program Files
│   ├───Adobe
│   ├───Bonjour
...

N of

Ads by Google

Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath