The return value is a string that is suitable for use in an html file, readable by a world wide web client. hypertext elements are translated into the corresponding HTML elements. When no HTML conversion is available, tex is called. (La)TeX can be rendered in the browser using MathJax or KaTeX.
The object html is a method function with a single argument.