SHELL SCRIPT AND HTML

Hello
I'm trying to develop a shell script that executes commands such as cat / etc / fstab uname, etc. ..... which generates me an output file format html own way.
Currently the shell script with the commands there, I have some notions of html but the generation of my html file is not clean at all in terms of layout.
I give you an example of script

# / Bin / bash
echo <HTML>>> file.html
echo <BODY>>> file.html
echo <BR> SYSTEM </ BR>>> file.html
cat / etc / fstab>> file.html
echo <BR> USERS </ BR>>> file.html
cat / etc / passwd>> file.html
echo </ BODY>>> file.html
echo </ HTML>>> file.html

thank you very much for your help

try this

# /Bin/bash
echo "<HTML>"> file.html                      # new file every time
echo "<BODY>">> file.html
echo "<BR> SYSTEM </ BR>">> file.html
echo "<PRE>">> file.html                       #keep spaces and new line
cat /etc/fstab>> file.html
echo "</ PRE>">> file.html
echo "<BR> USERS </ BR>">> file.html
echo "<PRE>">> file.html
cat /etc/passwd>> file.html
echo "</ PRE>">> file.html
echo "</ BODY>">> file.html
echo "</ HTML>">> file.html

thanks a lot
I don't know <PRE>
and you are very fast