HTMLSave["file.html"]
saves an HTML version of the current input notebook in the front end.
HTMLSave["file.html","source.nb"]
saves an HTML version of the notebook from the file source.nb.
HTMLSave["file.html",notebook]
saves an HTML version of the notebook corresponding to the specified notebook object.


HTMLSave
HTMLSave["file.html"]
saves an HTML version of the current input notebook in the front end.
HTMLSave["file.html","source.nb"]
saves an HTML version of the notebook from the file source.nb.
HTMLSave["file.html",notebook]
saves an HTML version of the notebook corresponding to the specified notebook object.
Details

- HTMLSave has options for specifying such features as how to include formulas, whether to make links for closed cell groups, and what correspondence to set up between notebook styles and HTML tags.
- HTMLSave normally saves graphics in separate image files.
- HTMLSave generates CSS stylesheets to mimic notebook styles.
- HTMLSave can often be accessed from an item in the Save As Special menu in the notebook front end.
- The output from HTMLSave is compliant with XHTML 1.0.
See Also
Tech Notes
History
Introduced in 1996 (3.0) | Updated in 2003 (5.0)
Text
Wolfram Research (1996), HTMLSave, Wolfram Language function, https://reference.wolfram.com/language/ref/HTMLSave.html (updated 2003).
CMS
Wolfram Language. 1996. "HTMLSave." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2003. https://reference.wolfram.com/language/ref/HTMLSave.html.
APA
Wolfram Language. (1996). HTMLSave. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HTMLSave.html
BibTeX
@misc{reference.wolfram_2025_htmlsave, author="Wolfram Research", title="{HTMLSave}", year="2003", howpublished="\url{https://reference.wolfram.com/language/ref/HTMLSave.html}", note=[Accessed: 18-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_htmlsave, organization={Wolfram Research}, title={HTMLSave}, year={2003}, url={https://reference.wolfram.com/language/ref/HTMLSave.html}, note=[Accessed: 18-August-2025]}