HTMLFormat[expr]
formats an expression into HTML such that numbers and powers use superscript notation.


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 MSP layout.
- HTMLFormat provides some useful formatting functions in HTML. It is suitable for formatting small expressions, such as numbers as shown in the following examples.
- 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 loading the package:
It is less suitable for formatting large expressions, since everything will come out in InputForm:
Text
Wolfram Research (1996), HTMLFormat, Wolfram Language function, https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLFormat.html.
CMS
Wolfram Language. 1996. "HTMLFormat." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLFormat.html.
APA
Wolfram Language. (1996). HTMLFormat. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLFormat.html
BibTeX
@misc{reference.wolfram_2025_htmlformat, author="Wolfram Research", title="{HTMLFormat}", year="1996", howpublished="\url{https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLFormat.html}", note=[Accessed: 25-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_htmlformat, organization={Wolfram Research}, title={HTMLFormat}, year={1996}, url={https://reference.wolfram.com/language/WolframWebEngine/ref/HTMLFormat.html}, note=[Accessed: 25-August-2025]}