To control page margins in html, can do it in html or css.
HTML method (add code the BODY tag of your web page source code): <BODY LEFTMARGIN="10" TOPMARGIN="10" MARGINWIDTH="10" MARGINHEIGHT="10"> CSS method (add code to the BODY tag of your external style sheet): body {margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 10px;}
To change margins in html output of htlatex, use the following .cfg file for htlatex
\Preamble{html} \begin{document} \Css {body {margin-top: 10px; margin-right: 10px; margin-bottom: 10px; margin-left: 50px; } } \EndPreamble
and then type htlatex foo.tex "foo.cfg"