basic HTML code using tag <code> </code> to display in readable format

wtolentino

New member
this is my first post on this HTML forums. i am not a HTML programmer please bear with me as i try to understand the HTML code. basically what i want to accomplish was to send an email message in html format. i already had a code that i use to send an email however i would like to format it that is wrapped/enclosed it with the tag <code> </code>. so it can be easily read.

basically this is code that i written:
Code:
<html>
 <head>
 <title>
   Optimizer Statistics Operations Report
 </title>
     <style type="text/css">
    {font:normal normal 8pt Courier,Courier;text-decoration:none;color:#000000;}
    .s8 {font-size:8pt;color:#006699}
   </style>
 </head>    
 <body>
 <code>
   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   | Operation Id | Operation          | Target                                           | Start Time                          | End Time                            | Status           |
   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   | 56945        | gather_table_stats | "UTL"."UTL_CFG_CONTROL"."UTL_CFG_CONTROL_202205" | 04-NOV-22 01.00.33.631801 PM -04:00 | 04-NOV-22 01.01.01.224682 PM -04:00 | COMPLETED        |
   ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 </code>
</body>
</html>


basically i want it to be displayed as:
expected_display.JPG


but this is what it was displaying either on the email and the browser:
output_display.JPG

please advise. thank you.
 
Back
Top