The HTML functions are contained in a package, MSP`HTML`, which is loaded as part of the webMathematica layout.
HTMLFormat provides some useful formatting functions into HTML. It is suitable for formatting small expressions such as numbers as shown below.
HTMLFormat is less suitable for formatting large expressions, since everything will come out in InputForm.
For larger expressions it is recommended to use one of the versions of the formatting function MSPFormat to gain a result in an image format or MathML.