webMathematica`

HTMLFormat

HTMLFormat[expr]

formats an expression into HTML such that numbers and powers use superscript notation

Details

  • 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.

Examples

Basic Examples  (1)

You can demonstrate how the function works by installing and loading the package:

It is less suitable for formatting large expressions, since everything will come out in InputForm.