However, if you want to create html file from tex, the tool tex2page is a ideal tool.
Tex2page is a built-in tool in package Racket, which can be downloaded from http://racket-lang.org/.
When the package is installed, tex2page can be used to generate html file from tex file easily.
>tex2page file.tex
or just >tex2page file
a Tip: now there is a bug in tex2page, you have to add a new system variable "HOME" to make it work.