I second the recommendation to look at Markdown/pandoc. As far as I know, good html from TeX/LaTeX doesn't exist.
I've had some success with ipython/nbconvert too (which in a roundabout way works like Markdown+pandoc, but doesn't use pandoc -- but outputs both reasonable(ish) html, and decent PDFs (via LaTeX).
I've had some success with ipython/nbconvert too (which in a roundabout way works like Markdown+pandoc, but doesn't use pandoc -- but outputs both reasonable(ish) html, and decent PDFs (via LaTeX).